all repos — openbox @ b07194a7aef3d0fbbef01a4e82fe7763f8c82720

openbox fork - make it a bit more like ryudo

add raiseOnFocus option
Dana Jansens danakj@orodu.net
commit

b07194a7aef3d0fbbef01a4e82fe7763f8c82720

parent

fe3fbbf21085722462ad4b0937f71c3e1d27bd5e

2 files changed, 7 insertions(+), 0 deletions(-)

jump to
M openbox/config.copenbox/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.hopenbox/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 */