if the keyboard is grabbed then dont ungrab it!
This commit is contained in:
parent
32047fd66c
commit
a260db31a9
1 changed files with 13 additions and 7 deletions
|
@ -785,7 +785,7 @@ ObAction *action_parse(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
|
||||||
return act;
|
return act;
|
||||||
}
|
}
|
||||||
|
|
||||||
void action_run_list(GSList *acts, struct _ObClient *c,
|
void action_run_list(GSList *acts, ObClient *c,
|
||||||
guint state, guint button, gint x, gint y,
|
guint state, guint button, gint x, gint y,
|
||||||
gboolean cancel, gboolean done)
|
gboolean cancel, gboolean done)
|
||||||
{
|
{
|
||||||
|
@ -793,9 +793,15 @@ void action_run_list(GSList *acts, struct _ObClient *c,
|
||||||
ObAction *a;
|
ObAction *a;
|
||||||
gboolean inter = FALSE;
|
gboolean inter = FALSE;
|
||||||
|
|
||||||
|
if (!acts)
|
||||||
|
return;
|
||||||
|
|
||||||
if (x < 0 && y < 0)
|
if (x < 0 && y < 0)
|
||||||
screen_pointer_pos(&x, &y);
|
screen_pointer_pos(&x, &y);
|
||||||
|
|
||||||
|
if (grab_on_keyboard())
|
||||||
|
inter = TRUE;
|
||||||
|
else
|
||||||
for (it = acts; it; it = g_slist_next(it)) {
|
for (it = acts; it; it = g_slist_next(it)) {
|
||||||
a = it->data;
|
a = it->data;
|
||||||
if (a->data.any.interactive) {
|
if (a->data.any.interactive) {
|
||||||
|
|
Loading…
Reference in a new issue