summaryrefslogtreecommitdiff
path: root/openbox/action.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-08 22:29:39 +0000
committerDana Jansens <danakj@orodu.net>2007-05-08 22:29:39 +0000
commitb0f43a115909a810bca9bbfa664851703bfd43e1 (patch)
tree72ee290d85e8a1f5230d788d03c4e8f4affa3dca /openbox/action.c
parent97821223393cdebd3eb3fdfcc6d0dcf7502a62d7 (diff)
don't focus splash screens and toolbars and menus when you click on them. or enter them.
Diffstat (limited to 'openbox/action.c')
-rw-r--r--openbox/action.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/openbox/action.c b/openbox/action.c
index f8b2b7b3..4ff6bdb9 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -1199,10 +1199,7 @@ void action_execute(union ActionData *data)
void action_activate(union ActionData *data)
{
if (data->client.any.c) {
- /* similar to the openbox dock for dockapps, don't let user actions
- give focus to 3rd-party docks (panels) either (unless they ask for
- it themselves). */
- if (data->client.any.c->type != OB_CLIENT_TYPE_DOCK) {
+ if (!data->any.button || client_mouse_focusable(data->client.any.c)) {
/* if using focus_delay, stop the timer now so that focus doesn't
go moving on us */
event_halt_focus_delay();
@@ -1220,10 +1217,7 @@ void action_activate(union ActionData *data)
void action_focus(union ActionData *data)
{
if (data->client.any.c) {
- /* similar to the openbox dock for dockapps, don't let user actions
- give focus to 3rd-party docks (panels) either (unless they ask for
- it themselves). */
- if (data->client.any.c->type != OB_CLIENT_TYPE_DOCK) {
+ if (!data->any.button || client_mouse_focusable(data->client.any.c)) {
/* if using focus_delay, stop the timer now so that focus doesn't
go moving on us */
event_halt_focus_delay();