diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-11 19:32:45 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-11 19:32:45 -0500 |
| commit | 22333336d3ba36784955c67444f996b557f3838a (patch) | |
| tree | 579e484f5d0be3d5b6f51c1e972de5d8201eaf65 /openbox/config.c | |
| parent | 602a73c15ce22250a604e443a994ad6c8726f3f5 (diff) | |
add an <active> option for window placement, to try force new windows on the active monitor (for xinerama)
Diffstat (limited to 'openbox/config.c')
| -rw-r--r-- | openbox/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbox/config.c b/openbox/config.c index ff4c542b..25e30fff 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -38,6 +38,7 @@ gboolean config_focus_under_mouse; ObPlacePolicy config_place_policy; gboolean config_place_center; +gboolean config_place_active; StrutPartial config_margins; @@ -500,6 +501,8 @@ static void parse_placement(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, config_place_policy = OB_PLACE_POLICY_MOUSE; if ((n = parse_find_node("center", node))) config_place_center = parse_bool(doc, n); + if ((n = parse_find_node("active", node))) + config_place_active = parse_bool(doc, n); } static void parse_margins(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, @@ -880,6 +883,7 @@ void config_startup(ObParseInst *i) config_place_policy = OB_PLACE_POLICY_SMART; config_place_center = TRUE; + config_place_active = FALSE; parse_register(i, "placement", parse_placement, NULL); |
