summaryrefslogtreecommitdiff
path: root/openbox/focus.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-04-22 19:13:38 +0000
committerDana Jansens <danakj@orodu.net>2007-04-22 19:13:38 +0000
commitbfb800c032e1dd50f5d1c37d1ce8ac9239947b01 (patch)
tree9729cf672c6490618f39926729fc5379cea41864 /openbox/focus.h
parent7d1226c57cbe2c83d87174b637bcf923897f8033 (diff)
a) remove focus_hilite, it is not needed and complicated things
b) set focus_client to null when nothing is actually focused, but still allow focus to go to black holes c) allow the focus action to be performed without a client, this will focus the openbox instance (i.e. the screen in multihead setups) big thanks to syscrash for the ideas on how to go about this
Diffstat (limited to 'openbox/focus.h')
-rw-r--r--openbox/focus.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/openbox/focus.h b/openbox/focus.h
index 1366cd08..5ed9977c 100644
--- a/openbox/focus.h
+++ b/openbox/focus.h
@@ -29,14 +29,6 @@ struct _ObClient;
/*! The client which is currently focused */
extern struct _ObClient *focus_client;
-/*! The client which is being decorated as focused, not always matching the
- real focus, but this is used to track it so that it can be resolved to match.
-
- This is for when you change desktops. We know which window is *going to be*
- focused, so we hilight it. But since it's hilighted, we also want
- keybindings to go to it, which is really what this is for.
-*/
-extern struct _ObClient *focus_hilite;
/*! The client which appears focused during a focus cycle operation */
extern struct _ObClient *focus_cycle_target;
@@ -50,6 +42,9 @@ void focus_shutdown(gboolean reconfig);
send focus anywhere, its called by the Focus event handlers */
void focus_set_client(struct _ObClient *client);
+/*! Focus nothing, but let keyboard events be caught. */
+void focus_nothing();
+
struct _ObClient* focus_fallback_target(gboolean allow_refocus,
struct _ObClient *old);