1
0
Fork 0

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:
Owen W. Taylor 2009-09-25 12:58:01 -04:00
parent d399141d13
commit 2af788956e

View file

@ -390,10 +390,10 @@ mutter_begin_modal_for_plugin (MetaScreen *screen,
if ((options & META_MODAL_KEYBOARD_ALREADY_GRABBED) == 0)
{
XGrabKeyboard (xdpy, grab_window,
False, /* owner_events */
GrabModeAsync, GrabModeAsync,
timestamp);
result = XGrabKeyboard (xdpy, grab_window,
False, /* owner_events */
GrabModeAsync, GrabModeAsync,
timestamp);
if (result != Success)
goto fail;