X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=inline;f=openbox%2Fkeyboard.c;h=09b99bcc583c16193e4969934a1e6b44721153fe;hb=1ffd89672fa62cdf2c9e707fdf53e6d8a0080b6f;hp=516503488ac59df1d1c9e8b326e9c693fe35c2ac;hpb=134063d850193fe7e2d985e818db6123cf5f47a3;p=chaz%2Fopenbox diff --git a/openbox/keyboard.c b/openbox/keyboard.c index 51650348..09b99bcc 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -1,6 +1,7 @@ /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- keyboard.c for the Openbox window manager + Copyright (c) 2004 Mikael Magnusson Copyright (c) 2003 Ben Jansens This program is free software; you can redistribute it and/or modify @@ -119,7 +120,7 @@ gboolean keyboard_bind(GList *keylist, ObAction *action) return FALSE; if ((t = tree_find(tree, &conflict)) != NULL) { - /* already bound to something, use the existing tree */ + /* already bound to something, use the existing tree */ tree_destroy(tree); tree = NULL; } else @@ -287,6 +288,11 @@ void keyboard_event(ObClient *client, const XEvent *e) } } +gboolean keyboard_interactively_grabbed() +{ + return !!interactive_states; +} + void keyboard_startup(gboolean reconfig) { grab_keys(TRUE);