X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fkeyboard.c;h=f8872938f0cf1a64ed34925400615bf00c1876bf;hb=81743b0529a74982cfcc9e89854d900aeedb686a;hp=516503488ac59df1d1c9e8b326e9c693fe35c2ac;hpb=134063d850193fe7e2d985e818db6123cf5f47a3;p=chaz%2Fopenbox diff --git a/openbox/keyboard.c b/openbox/keyboard.c index 51650348..f8872938 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) 2006 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);