X11Utils: Simplify the Fullscreen interface

Since we only use the toggle action, only keep that.
This commit is contained in:
Jasper St. Pierre
2014-08-06 22:16:28 -04:00
parent 09eb30ea3b
commit 2eacf229ed
3 changed files with 5 additions and 9 deletions

View File

@ -168,7 +168,7 @@ class PlatformX11 : public Platform
if (fullscreen)
{
X11Utils::EWMH_Fullscreen(dpy, _NET_WM_STATE_TOGGLE);
X11Utils::ToggleFullscreen(dpy);
#if defined(HAVE_XRANDR) && HAVE_XRANDR
XRRConfig->ToggleDisplayMode(True);
#endif
@ -204,7 +204,7 @@ class PlatformX11 : public Platform
else if ((key == XK_Return) && (event.xkey.state & Mod1Mask))
{
fullscreen = !fullscreen;
X11Utils::EWMH_Fullscreen(dpy, _NET_WM_STATE_TOGGLE);
X11Utils::ToggleFullscreen(dpy);
#if defined(HAVE_XRANDR) && HAVE_XRANDR
XRRConfig->ToggleDisplayMode(fullscreen);
#endif