diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-23 22:51:19 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-23 22:51:19 +0000 |
| commit | a6af2fc0b953894f80f37fec90ead9277a07b314 (patch) | |
| tree | acb398066e5d6294775c41a18279d8cfe254ce56 /openbox/actions | |
| parent | 151df8b3176f532abe7d72bc678b6e3e059af08b (diff) | |
don't focus docks when you click on them
Diffstat (limited to 'openbox/actions')
| -rw-r--r-- | openbox/actions/focus.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openbox/actions/focus.c b/openbox/actions/focus.c index 254850ec..afa5f8ff 100644 --- a/openbox/actions/focus.c +++ b/openbox/actions/focus.c @@ -45,9 +45,13 @@ static gboolean run_func(ObActionsData *data, gpointer options) Options *o = options; if (data->client) { + ob_debug("button %d focusable %d context %d %d %d\n", + data->button, client_mouse_focusable(data->client), + data->context, + OB_FRAME_CONTEXT_CLIENT, OB_FRAME_CONTEXT_FRAME); if (data->button == 0 || client_mouse_focusable(data->client) || - data->context != OB_FRAME_CONTEXT_CLIENT || - data->context != OB_FRAME_CONTEXT_FRAME) + (data->context != OB_FRAME_CONTEXT_CLIENT && + data->context != OB_FRAME_CONTEXT_FRAME)) { client_activate(data->client, o->here, FALSE, FALSE, TRUE); } |
