[mutter] Handle FocusIn events for override redirect windows correctly
- From: Tomas Frydrych <tomasf src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mutter] Handle FocusIn events for override redirect windows correctly
- Date: Tue, 4 Aug 2009 13:30:37 +0000 (UTC)
commit 3eee6b4218f6781d68eaebce88814ee0a9aa7b2c
Author: Tomas Frydrych <tf linux intel com>
Date: Tue Aug 4 09:01:32 2009 +0100
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 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 4e7d5e0..5f42416 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]