From 78bc7c27b20d551cfd85510925c1a8abbff55ad9 Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Fri, 3 Jun 2005 18:45:03 +0000 Subject: [PATCH] Partial semi-revert; X11Helper is supposed to catch that the window isn't open (I just fixed that), not us making sure to unmask only after the window is created. --- stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp index bc6ced53b1..bbfafbdba9 100644 --- a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp +++ b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp @@ -97,6 +97,9 @@ CString LowLevelWindow_X11::TryVideoMode( RageDisplay::VideoModeParams p, bool & return "No visual available for that depth."; } + /* Enable StructureNotifyMask, so we receive a MapNotify for the following XMapWindow. */ + X11Helper::OpenMask( StructureNotifyMask ); + if( !X11Helper::MakeWindow(xvi->screen, xvi->depth, xvi->visual, p.width, p.height) ) { return "Failed to create the window."; @@ -111,9 +114,6 @@ CString LowLevelWindow_X11::TryVideoMode( RageDisplay::VideoModeParams p, bool & glXMakeCurrent( X11Helper::Dpy, X11Helper::Win, ctxt ); - /* Enable StructureNotifyMask, so we receive a MapNotify for the following XMapWindow. */ - X11Helper::OpenMask( StructureNotifyMask ); - XMapWindow( X11Helper::Dpy, X11Helper::Win ); // HACK: Wait for the MapNotify event, without spinning and