From a5c62db8849e0ff755fb6696720ce52f6cf71a4a Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 13 Aug 2011 18:53:29 -0500 Subject: [PATCH] [LowLevelWindow_X11] Don't force the window into the upper left corner. [ZipFile] --- Docs/Changelog_sm5.txt | 1 + src/arch/LowLevelWindow/LowLevelWindow_X11.cpp | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index ef8365b326..8b6a0f12bf 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -11,6 +11,7 @@ StepMania 5.0 Preview 3 | 201108?? 2011/08/13 ---------- * [Theme-side] Added Fancy UI Background preference to Theme Options. [AJ] +* [LowLevelWindow_X11] Don't force the window into the upper left corner. [ZipFile] 2011/08/07 ---------- diff --git a/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp b/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp index 482f9c17eb..b1b2f523a4 100644 --- a/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp +++ b/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp @@ -210,9 +210,6 @@ RString LowLevelWindow_X11::TryVideoMode( const VideoModeParams &p, bool &bNewDe // XXX: This doesn't handle if the config has changed since we queried it (see man Xrandr) XRRSetScreenConfig( Dpy, g_pScreenConfig, RootWindow(Dpy, DefaultScreen(Dpy)), iSizeMatch, 1, CurrentTime ); - // Move the window to the corner that the screen focuses in on. - XMoveWindow( Dpy, Win, 0, 0 ); - XRaiseWindow( Dpy, Win ); // We want to prevent the WM from catching anything that comes from the keyboard. @@ -269,7 +266,8 @@ RString LowLevelWindow_X11::TryVideoMode( const VideoModeParams &p, bool &bNewDe XSendEvent(Dpy, DefaultRootWindow(Dpy), False, SubstructureNotifyMask, &xev); // This one is needed for compiz, if the window reaches out of bounds of the screen it becames destroyed, only the window, the program is left running. - XMoveWindow( Dpy, Win, 0, 0 ); + // Commented out per the patch at http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=398 + //XMoveWindow( Dpy, Win, 0, 0 ); } // Resize the window.