Skip to content

Commit

Permalink
[settings] Deny keypad input device grabbing by default. Fixes JB#43764
Browse files Browse the repository at this point in the history
Previously grabbing input devices was necessary, but currently
the expected behavior is to allow compositor to see all input
events and use input policy decisions exposed on D-Bus to control
whether UI should react to key events it sees.

As grabbing can result in loss of information on UI side, takes time to
undo on display unblank and should not be required anymore, change
the built in defaults so that grabbing is not allowed.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Nov 12, 2018
1 parent 455073d commit aa16304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion event-input.h
Expand Up @@ -108,7 +108,7 @@
# define MCE_INPUT_GRAB_ALLOW_NONE (0)
# define MCE_INPUT_GRAB_ALLOW_TS (1<<0)
# define MCE_INPUT_GRAB_ALLOW_KP (1<<1)
# define MCE_DEFAULT_INPUT_GRAB_ALLOWED 2 // = MCE_INPUT_GRAB_ALLOW_KP
# define MCE_DEFAULT_INPUT_GRAB_ALLOWED 0 // = MCE_INPUT_GRAB_ALLOW_NONE

/* ========================================================================= *
* Functions
Expand Down

0 comments on commit aa16304

Please sign in to comment.