summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-27 05:07:17 +0000
committerDana Jansens <danakj@orodu.net>2007-05-27 05:07:17 +0000
commit10002eaa2738a4c3bba86f082a483d5c4138adc7 (patch)
tree7dff81da565c6bf6a61631aeab34107e21c89ff6
parentfe99440c1666db533eeed102a3860d3c0c191f4e (diff)
don't queue focusing actions. so they don't hide the menu right away
-rw-r--r--openbox/action.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/openbox/action.c b/openbox/action.c
index d16d13f1..6e4cd186 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -1151,13 +1151,9 @@ void action_run_list(GSList *acts, ObClient *c, ObFrameContext context,
{
/* interactive actions are not queued */
a->func(&a->data);
- } else if (c &&
- (context == OB_FRAME_CONTEXT_CLIENT ||
- (c->type == OB_CLIENT_TYPE_DESKTOP &&
- context == OB_FRAME_CONTEXT_DESKTOP)) &&
- (a->func == action_focus ||
- a->func == action_activate ||
- a->func == action_showmenu))
+ } else if (a->func == action_focus ||
+ a->func == action_activate ||
+ a->func == action_showmenu)
{
/* XXX MORE UGLY HACK
actions from clicks on client windows are NOT queued.
@@ -1177,11 +1173,15 @@ void action_run_list(GSList *acts, ObClient *c, ObFrameContext context,
pointer. ugh.
also with the menus, there is a race going on. if the
- desktop wants to pop up a menu, and we do to, we send them
+ desktop wants to pop up a menu, and we do too, we send them
the button before we pop up the menu, so they pop up their
menu first. but not always. if we pop up our menu before
sending them the button press, then the result is
deterministic. yay.
+
+ XXX further more. focus actions are not queued at all,
+ because if you bind focus->showmenu, the menu will get
+ hidden to do the focusing
*/
a->func(&a->data);
} else