use XMapRaised instead of XMapWindow + XRaiseWindow

This commit is contained in:
Bill Currie 2001-09-10 17:18:31 +00:00
parent 0f30506b79
commit 95515e28d7

View file

@ -393,7 +393,7 @@ void X11_UpdateFullscreen (cvar_t *fullscreen)
X11_ProcessEvent (); //FIXME should do proper event parsing.
attr.override_redirect = vidmode_active != 0;
XChangeWindowAttributes (x_disp, x_win, mask, &attr);
XMapWindow (x_disp, x_win);
XMapRaised (x_disp, x_win);
X11_ProcessEvent (); //FIXME should do proper event parsing.
if (vidmode_active) {
XMoveWindow(x_disp, x_win, 0, 0);
@ -402,8 +402,6 @@ void X11_UpdateFullscreen (cvar_t *fullscreen)
window_saved = 0;
}
X11_ProcessEvent (); //FIXME should do proper event parsing.
XRaiseWindow (x_disp, x_win);
X11_ProcessEvent (); //FIXME should do proper event parsing.
XWarpPointer (x_disp, None, x_win, 0, 0, 0, 0, 0, 0);
if (vidmode_active) {