Commit 228b0cc0 authored by Karl Lessard's avatar Karl Lessard Committed by Alexandre Julliard

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

parent 605a9c39
......@@ -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 */
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment