mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
keybindings: Do not grab the locate-pointer key if unnecessary
On X11, mutter needs to keep a grab on the locate-pointer key to be able to trigger the functionality time the corresponding key combo is pressed. However, doing so may have side effects on other X11 clients that would want to have a grab on the same key. Make sure we only actually grab the key combo for "locate-pointer" only when the feature is actually enabled, so that having the locate pointer feature turned off (the default) would not cause side effects on other X11 clients that might want to use the same key for their own use. Fixes: https://gitlab.gnome.org/GNOME/mutter/issues/647
This commit is contained in:

committed by
Carlos Garnacho

parent
9c8ff5dbe8
commit
ac5d9ec558
@ -65,6 +65,7 @@
|
||||
* @META_PREF_AUTO_MAXIMIZE: auto-maximize
|
||||
* @META_PREF_CENTER_NEW_WINDOWS: center new windows
|
||||
* @META_PREF_DRAG_THRESHOLD: drag threshold
|
||||
* @META_PREF_LOCATE_POINTER: show pointer location
|
||||
*/
|
||||
|
||||
/* Keep in sync with GSettings schemas! */
|
||||
@ -103,6 +104,7 @@ typedef enum
|
||||
META_PREF_AUTO_MAXIMIZE,
|
||||
META_PREF_CENTER_NEW_WINDOWS,
|
||||
META_PREF_DRAG_THRESHOLD,
|
||||
META_PREF_LOCATE_POINTER,
|
||||
} MetaPreference;
|
||||
|
||||
typedef void (* MetaPrefsChangedFunc) (MetaPreference pref,
|
||||
|
Reference in New Issue
Block a user