add raiseOnFocus option
This commit is contained in:
parent
fe3fbbf210
commit
b07194a7ae
2 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
||||||
gboolean config_focus_new;
|
gboolean config_focus_new;
|
||||||
gboolean config_focus_follow;
|
gboolean config_focus_follow;
|
||||||
guint config_focus_delay;
|
guint config_focus_delay;
|
||||||
|
guint config_focus_raise;
|
||||||
|
|
||||||
char *config_theme;
|
char *config_theme;
|
||||||
|
|
||||||
|
@ -197,6 +198,8 @@ static void parse_focus(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
|
||||||
config_focus_follow = parse_bool(doc, n);
|
config_focus_follow = parse_bool(doc, n);
|
||||||
if ((n = parse_find_node("focusDelay", node)))
|
if ((n = parse_find_node("focusDelay", node)))
|
||||||
config_focus_delay = parse_int(doc, n) * 1000;
|
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,
|
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_new = TRUE;
|
||||||
config_focus_follow = FALSE;
|
config_focus_follow = FALSE;
|
||||||
config_focus_delay = 0;
|
config_focus_delay = 0;
|
||||||
|
config_focus_raise = FALSE;
|
||||||
|
|
||||||
parse_register(i, "focus", parse_focus, NULL);
|
parse_register(i, "focus", parse_focus, NULL);
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,9 @@ extern gboolean config_focus_new;
|
||||||
extern gboolean config_focus_follow;
|
extern gboolean config_focus_follow;
|
||||||
/*! Timeout for focusing windows on focus follows mouse, in microseconds */
|
/*! Timeout for focusing windows on focus follows mouse, in microseconds */
|
||||||
extern guint config_focus_delay;
|
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
|
/*! When true windows' contents are refreshed while they are resized; otherwise
|
||||||
they are not updated until the resize is complete */
|
they are not updated until the resize is complete */
|
||||||
|
|
Loading…
Reference in a new issue