add raiseOnFocus option
Dana Jansens danakj@orodu.net
2 files changed,
7 insertions(+),
0 deletions(-)
M
openbox/config.c
→
openbox/config.c
@@ -27,6 +27,7 @@
gboolean config_focus_new; gboolean config_focus_follow; guint config_focus_delay; +guint config_focus_raise; char *config_theme;@@ -197,6 +198,8 @@ if ((n = parse_find_node("followMouse", node)))
config_focus_follow = parse_bool(doc, n); if ((n = parse_find_node("focusDelay", node))) config_focus_delay = parse_int(doc, n) * 1000; + if ((n = parse_find_node("raiseOnFocus", node))) + config_focus_raise = parse_bool(doc, n); } static void parse_theme(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,@@ -477,6 +480,7 @@ {
config_focus_new = TRUE; config_focus_follow = FALSE; config_focus_delay = 0; + config_focus_raise = FALSE; parse_register(i, "focus", parse_focus, NULL);
M
openbox/config.h
→
openbox/config.h
@@ -32,6 +32,9 @@ /*! Focus windows when the mouse enters them */
extern gboolean config_focus_follow; /*! Timeout for focusing windows on focus follows mouse, in microseconds */ extern guint config_focus_delay; +/*! If windows should automatically be raised when they are focused in + focus follows mouse */ +extern guint config_focus_raise; /*! When true windows' contents are refreshed while they are resized; otherwise they are not updated until the resize is complete */