From 228b0cc023eb13fa187cf311928890f6c4a22246 Mon Sep 17 00:00:00 2001 From: Karl Lessard Date: Thu, 4 Nov 1999 02:10:08 +0000 Subject: [PATCH] Check if the window is managed before trying to give it focus. --- windows/x11drv/wnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/x11drv/wnd.c b/windows/x11drv/wnd.c index 29a88db2b2f..36a090f7588 100644 --- a/windows/x11drv/wnd.c +++ b/windows/x11drv/wnd.c @@ -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 */ {