From 907bfa03eb3b8598dddaec92d95795a37e6f6eca Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Sun, 13 Mar 2005 22:40:41 +0000 Subject: [PATCH] I'm such an idiot, I forgot to map the window! Also, slight reordering to make things theoretically more efficient. --- stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp index a067451dcb..475c26304a 100644 --- a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp +++ b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp @@ -74,6 +74,10 @@ CString LowLevelWindow_X11::TryVideoMode(RageDisplay::VideoModeParams p, bool &b ctxt = glXCreateContext(X11Helper::Dpy(), xvi, NULL, True); + glXMakeCurrent(X11Helper::Dpy(), X11Helper::Win(), ctxt); + + XMapWindow(X11Helper::Dpy(), X11Helper::Win() ); + // HACK: Wait for the MapNotify event, without spinning and // eating CPU unnecessarily, and without smothering other // events. Do this by grabbing all events, remembering @@ -94,8 +98,6 @@ CString LowLevelWindow_X11::TryVideoMode(RageDisplay::VideoModeParams p, bool &b X11Helper::CloseMask(StructureNotifyMask); - glXMakeCurrent(X11Helper::Dpy(), X11Helper::Win(), ctxt); - windowIsOpen = true; } else { bNewDeviceOut = false; }