From b07194a7aef3d0fbbef01a4e82fe7763f8c82720 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 21 Sep 2003 20:17:50 +0000 Subject: [PATCH] add raiseOnFocus option --- openbox/config.c | 4 ++++ openbox/config.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/openbox/config.c b/openbox/config.c index d05b9ab9..0c15b091 100644 --- a/openbox/config.c +++ b/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 @@ static void parse_focus(ObParseInst *i, xmlDocPtr doc, xmlNodePtr 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 @@ void config_startup(ObParseInst *i) config_focus_new = TRUE; config_focus_follow = FALSE; config_focus_delay = 0; + config_focus_raise = FALSE; parse_register(i, "focus", parse_focus, NULL); diff --git a/openbox/config.h b/openbox/config.h index 917e8fa7..582da954 100644 --- a/openbox/config.h +++ b/openbox/config.h @@ -32,6 +32,9 @@ extern gboolean config_focus_new; 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 */ -- 2.45.2