keybindings: Remove two extra error traps

This commit is contained in:
Jasper St. Pierre 2014-04-24 10:56:59 -04:00
parent a6f3534ff0
commit 2c53919462

View File

@ -1383,7 +1383,6 @@ grab_keyboard (MetaDisplay *display,
guint32 timestamp,
int grab_mode)
{
int result;
int grab_status;
unsigned char mask_bits[XIMaskLen (XI_LASTEVENT)] = { 0 };
@ -1419,23 +1418,12 @@ grab_keyboard (MetaDisplay *display,
if (grab_status != Success)
{
meta_error_trap_pop_with_return (display);
meta_topic (META_DEBUG_KEYBINDINGS,
"XIGrabDevice() returned failure status %s time %u\n",
grab_status_to_string (grab_status),
timestamp);
return FALSE;
}
else
{
result = meta_error_trap_pop_with_return (display);
if (result != Success)
{
meta_topic (META_DEBUG_KEYBINDINGS,
"XIGrabDevice() resulted in an error\n");
return FALSE;
}
}
meta_topic (META_DEBUG_KEYBINDINGS, "Grabbed all keys\n");