summaryrefslogtreecommitdiff
path: root/openbox/action.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-04 07:21:22 +0000
committerDana Jansens <danakj@orodu.net>2007-05-04 07:21:22 +0000
commitb5161f803267be7778dd893de55d2f71c808d719 (patch)
tree7d6fa882b9d3e74dde7d7a2dec1a34e1f8874e6f /openbox/action.c
parenta823e4786e8c0b5ec1940f7a6daaf4572f7d452a (diff)
revert r6029, as it didnt fix anything.
however this patch does fix the aforementioned problem. actions need some reworking... yeah... later...
Diffstat (limited to 'openbox/action.c')
-rw-r--r--openbox/action.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/openbox/action.c b/openbox/action.c
index f57ab605..5d1c08a9 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -1098,6 +1098,17 @@ void action_run_list(GSList *acts, ObClient *c, ObFrameContext context,
if (a->data.any.interactive || a->func == action_moveresize) {
/* interactive actions are not queued */
a->func(&a->data);
+ } else if (context == OB_FRAME_CONTEXT_CLIENT ||
+ (c && c->type == OB_CLIENT_TYPE_DESKTOP &&
+ context == OB_FRAME_CONTEXT_DESKTOP)) {
+ /* XXX MORE UGLY HACK
+ actions from clicks on client windows are NOT queued.
+ this solves the mysterious click-and-drag-doesnt-work
+ problem. it was because the window gets focused and stuff
+ after the button event has already been passed through. i
+ dont really know why it should care but it does and it makes
+ a difference. */
+ a->func(&a->data);
} else
ob_main_loop_queue_action(ob_main_loop, a);
}