static Time grab_time = CurrentTime;
static gint passive_count = 0;
-static Time ungrab_time()
+static Time ungrab_time(void)
{
Time t = event_curtime;
if (grab_time == CurrentTime ||
return t;
}
-gboolean grab_on_keyboard()
+gboolean grab_on_keyboard(void)
{
return kgrabs > 0;
}
-gboolean grab_on_pointer()
+gboolean grab_on_pointer(void)
{
return pgrabs > 0;
}
pointer_mode, GrabModeAsync, None, ob_cursor(cur));
xerror_set_ignore(FALSE);
if (xerror_occured)
- ob_debug("Failed to grab button %d modifiers %d", button, state);
+ ob_debug("Failed to grab button %d modifiers %d\n", button, state);
}
void ungrab_button(guint button, guint state, Window win)
GrabModeAsync, keyboard_mode);
xerror_set_ignore(FALSE);
if (xerror_occured)
- ob_debug("Failed to grab keycode %d modifiers %d", keycode, state);
+ ob_debug("Failed to grab keycode %d modifiers %d\n", keycode, state);
}
void ungrab_all_keys(Window win)
if (passive_count < 0) passive_count = 0;
}
-void ungrab_passive_key()
+void ungrab_passive_key(void)
{
- ob_debug("ungrabbing %d passive grabs\n", passive_count);
+ /*ob_debug("ungrabbing %d passive grabs\n", passive_count);*/
if (passive_count) {
- /* kill out passive grab */
+ /* kill our passive grab */
XUngrabKeyboard(ob_display, event_curtime);
passive_count = 0;
}