+2002-06-06 Bill Haneman <bill.haneman@sun.com>
+
+ * registryd/deviceeventcontroller.c:
+ (spi_controller_update_key_grabs):
+ Fix for #82509, lack of failure notification when
+ ALL_WINDOWS keygrabs fail due to XGrabKey
+ failure: we synchronize the server when
+ registering a passive grab, to make sure we get the
+ error message before the call returns.
+
2002-06-03 Bill Haneman <bill.haneman@sun.com>
* test/test-simple.c:
#ifdef SPI_DEBUG
fprintf (stderr, "grab with mask %x\n", grab_mask->mod_mask);
#endif
+ XSynchronize (spi_get_display(), True);
XGrabKey (spi_get_display (),
grab_mask->key_val,
grab_mask->mod_mask,
True,
GrabModeAsync,
GrabModeAsync);
- /* TODO: set retval to FALSE if an X error occurrs here */
+ XSynchronize (spi_get_display(), False);
}
grab_mask->pending_add = FALSE;
spi_grab_mask_free (grab_mask);
}
- /* TODO: check calls for errors and return FALSE if error occurs */
}
return ! spi_clear_error_state ();