From 3fdc8bfa3db8fd8bd32dff3e2ee4cad3427d6a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 17 Sep 2012 23:11:57 +0200 Subject: [PATCH] main: Override focus-change-on-pointer-rest preference The application menu is currently unusable with non-maximized windows when using focus-follows-mouse mode. Override mutter's focus-change-on-pointer-rest preference, so that the actual focus change is delayed until the pointer stops moving. https://bugzilla.gnome.org/show_bug.cgi?id=678169 --- data/org.gnome.shell.gschema.xml.in.in | 8 ++++++++ src/main.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/data/org.gnome.shell.gschema.xml.in.in b/data/org.gnome.shell.gschema.xml.in.in index 18eac2c4d..824d1b7e2 100644 --- a/data/org.gnome.shell.gschema.xml.in.in +++ b/data/org.gnome.shell.gschema.xml.in.in @@ -190,5 +190,13 @@ value here is from the GsmPresenceStatus enumeration. This key overrides the key in org.gnome.mutter when running GNOME Shell. + + + true + Delay focus changes in mouse mode until the pointer stops moving + + This key overrides the key in org.gnome.mutter when running GNOME Shell. + + diff --git a/src/main.c b/src/main.c index 451025d76..001a91a57 100644 --- a/src/main.c +++ b/src/main.c @@ -178,6 +178,8 @@ shell_prefs_init (void) OVERRIDES_SCHEMA); meta_prefs_override_preference_schema ("edge-tiling", OVERRIDES_SCHEMA); + meta_prefs_override_preference_schema ("focus-change-on-pointer-rest", + OVERRIDES_SCHEMA); } static void