summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/MainNoGUI.cpp
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-08-06 22:17:21 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2014-08-19 10:05:57 -0400
commit071e175a1d1449e078d2279578dbe9a82dbcba93 (patch)
tree27b9ad561e3ba0d732c1436a7457d0d0a8022c91 /Source/Core/DolphinWX/MainNoGUI.cpp
parent2eacf229edc78351a69739c587c46f93baed13da (diff)
X11Utils: Explicitly pass the window to fullscreen into ToggleFullscreen
MainNoGUI is going to create its own window soon, and we need to fullscreen that one instead of the GLX window.
Diffstat (limited to 'Source/Core/DolphinWX/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinWX/MainNoGUI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/MainNoGUI.cpp b/Source/Core/DolphinWX/MainNoGUI.cpp
index 24d3875349..4f8d98d110 100644
--- a/Source/Core/DolphinWX/MainNoGUI.cpp
+++ b/Source/Core/DolphinWX/MainNoGUI.cpp
@@ -168,7 +168,7 @@ class PlatformX11 : public Platform
if (fullscreen)
{
- X11Utils::ToggleFullscreen(dpy);
+ X11Utils::ToggleFullscreen(dpy, win);
#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::ToggleFullscreen(dpy);
+ X11Utils::ToggleFullscreen(dpy, win);
#if defined(HAVE_XRANDR) && HAVE_XRANDR
XRRConfig->ToggleDisplayMode(fullscreen);
#endif