Check if the window is managed before trying to give it focus.

This commit is contained in:
Karl Lessard 1999-11-04 02:10:08 +00:00 committed by Alexandre Julliard
parent 605a9c396a
commit 228b0cc023
1 changed files with 2 additions and 2 deletions

View File

@ -601,9 +601,9 @@ void X11DRV_WND_SetFocus(WND *wndPtr)
Window win;
/* Only mess with the X focus if there's */
/* no desktop window and no window manager. */
/* no desktop window and if the window is not managed by the WM. */
if ((X11DRV_WND_GetXRootWindow(wndPtr) != DefaultRootWindow(display))
|| Options.managed) return;
|| (wndPtr->flags & WIN_MANAGED)) return;
if (!hwnd) /* If setting the focus to 0, uninstall the colormap */
{