[gnome-control-center] keyboard: Don't grab the mouse pointer
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] keyboard: Don't grab the mouse pointer
- Date: Thu, 8 Sep 2016 15:13:51 +0000 (UTC)
commit b10a1ac9351c47afed103ef3d671a12c6f851dde
Author: Bastien Nocera <hadess hadess net>
Date: Thu Sep 8 11:43:44 2016 +0200
keyboard: Don't grab the mouse pointer
In a0a15588, we starting using a separate shortcut editor window, which
was doing its own capture instead of using the GtkCellRendererAccel. But
this started grabbing both keyboard and pointer, making it impossible to
cancel captures using the pointer.
We now only grab keyboard keys, making the pointer usable again.
https://bugzilla.gnome.org/show_bug.cgi?id=769314
panels/keyboard/cc-keyboard-shortcut-editor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-shortcut-editor.c b/panels/keyboard/cc-keyboard-shortcut-editor.c
index 8fc9b9b..1efd991 100644
--- a/panels/keyboard/cc-keyboard-shortcut-editor.c
+++ b/panels/keyboard/cc-keyboard-shortcut-editor.c
@@ -194,7 +194,7 @@ grab_seat (CcKeyboardShortcutEditor *self,
status = gdk_seat_grab (gdk_device_get_seat (pointer),
window,
- GDK_SEAT_CAPABILITY_ALL,
+ GDK_SEAT_CAPABILITY_KEYBOARD,
FALSE,
NULL,
event,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]