/*! A list of all possible combinations of keyboard lock masks */
static unsigned int mask_list[MASK_LIST_SIZE];
+static guint kgrabs = 0;
+static guint pgrabs = 0;
+
+gboolean grab_on_keyboard()
+{
+ return kgrabs > 0;
+}
+
+gboolean grab_on_pointer()
+{
+ return pgrabs > 0;
+}
gboolean grab_keyboard(gboolean grab)
{
- static guint kgrabs = 0;
gboolean ret = FALSE;
if (grab) {
gboolean grab_pointer(gboolean grab, ObCursor cur)
{
- static guint pgrabs = 0;
gboolean ret = FALSE;
if (grab) {
gboolean grab_pointer_window(gboolean grab, ObCursor cur, Window win)
{
- static guint pgrabs = 0;
gboolean ret = FALSE;
if (grab) {
gboolean grab_pointer_window(gboolean grab, ObCursor cur, Window win);
gint grab_server(gboolean grab);
+gboolean grab_on_keyboard();
+gboolean grab_on_pointer();
+
void grab_button(guint button, guint state, Window win, guint mask);
void grab_button_full(guint button, guint state, Window win, guint mask,
int pointer_mode, ObCursor cursor);