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.

This commit is contained in:
Ben Anderson
2005-06-03 18:45:03 +00:00
parent d280cf7445
commit 78bc7c27b2
@@ -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