From 3eee6b4218f6781d68eaebce88814ee0a9aa7b2c Mon Sep 17 00:00:00 2001 From: Tomas Frydrych Date: Tue, 4 Aug 2009 09:01:32 +0100 Subject: [PATCH] Handle FocusIn events for override redirect windows correctly Do not try to insert / remove the window from the MRU list; just reset the MetaDisplay focus window to NULL. http://bugzilla.gnome.org/show_bug.cgi?id=590611 --- src/core/window.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/window.c b/src/core/window.c index 4e7d5e001..5f42416ef 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -5701,6 +5701,13 @@ meta_window_notify_focus (MetaWindow *window, if (event->type == FocusIn) { + if (window->override_redirect) + { + window->display->focus_window = NULL; + g_object_notify (G_OBJECT (window->display), "focus-window"); + return FALSE; + } + if (window != window->display->focus_window) { meta_topic (META_DEBUG_FOCUS,