summaryrefslogtreecommitdiff
path: root/openbox/action.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-08 22:53:09 +0000
committerDana Jansens <danakj@orodu.net>2007-05-08 22:53:09 +0000
commitd074b11bf9f40549eb9d138afe3c615b3091aff4 (patch)
treebe5e8bccdcdba05703fe24697a81ad1b68c27999 /openbox/action.c
parentf0e5332b4ae5504f167d75e853c13e6f718ce70a (diff)
let windows that cant iconify still iconify with their parents, but not non-normal windows.
let you focus windows that wouldnt normally by clicking on their decor (if they have any)
Diffstat (limited to 'openbox/action.c')
-rw-r--r--openbox/action.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/openbox/action.c b/openbox/action.c
index 4ff6bdb9..4839088c 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -1199,7 +1199,9 @@ void action_execute(union ActionData *data)
void action_activate(union ActionData *data)
{
if (data->client.any.c) {
- if (!data->any.button || client_mouse_focusable(data->client.any.c)) {
+ if (!data->any.button || client_mouse_focusable(data->client.any.c) ||
+ data->any.context != OB_FRAME_CONTEXT_CLIENT)
+ {
/* if using focus_delay, stop the timer now so that focus doesn't
go moving on us */
event_halt_focus_delay();
@@ -1217,7 +1219,9 @@ void action_activate(union ActionData *data)
void action_focus(union ActionData *data)
{
if (data->client.any.c) {
- if (!data->any.button || client_mouse_focusable(data->client.any.c)) {
+ if (!data->any.button || client_mouse_focusable(data->client.any.c) ||
+ data->any.context != OB_FRAME_CONTEXT_CLIENT)
+ {
/* if using focus_delay, stop the timer now so that focus doesn't
go moving on us */
event_halt_focus_delay();