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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user