mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 16:34:10 +00:00
mutter_begin_modal_for_plugin(): Check result of XGrabKeyboard()
The return value of XGrabKeyboard() wasn't actually being assigned to the 'result' variable so we didn't notice when grabbing the keyboard failed. https://bugzilla.gnome.org/show_bug.cgi?id=596343
This commit is contained in:
parent
d399141d13
commit
2af788956e
@ -390,7 +390,7 @@ mutter_begin_modal_for_plugin (MetaScreen *screen,
|
|||||||
|
|
||||||
if ((options & META_MODAL_KEYBOARD_ALREADY_GRABBED) == 0)
|
if ((options & META_MODAL_KEYBOARD_ALREADY_GRABBED) == 0)
|
||||||
{
|
{
|
||||||
XGrabKeyboard (xdpy, grab_window,
|
result = XGrabKeyboard (xdpy, grab_window,
|
||||||
False, /* owner_events */
|
False, /* owner_events */
|
||||||
GrabModeAsync, GrabModeAsync,
|
GrabModeAsync, GrabModeAsync,
|
||||||
timestamp);
|
timestamp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user