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
This commit is contained in:
Tomas Frydrych 2009-08-04 09:01:32 +01:00
parent ff9400abde
commit 3eee6b4218

View File

@ -5701,6 +5701,13 @@ meta_window_notify_focus (MetaWindow *window,
if (event->type == FocusIn) 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) if (window != window->display->focus_window)
{ {
meta_topic (META_DEBUG_FOCUS, meta_topic (META_DEBUG_FOCUS,