summaryrefslogtreecommitdiff
path: root/openbox/config.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2004-03-21 00:48:48 +0000
committerMikael Magnusson <mikachu@comhem.se>2004-03-21 00:48:48 +0000
commit64c65f3b67364bb82420dbdd05d7e655b1d74d43 (patch)
treef1984745d372a47d34b21c784357bbe060fed657 /openbox/config.c
parente8339970d8c319da0a0ac0129f075f86739f3bd3 (diff)
adds option to have the popup centered above the window instead of centered, and fix the last occurance of that reversed variable
Diffstat (limited to 'openbox/config.c')
-rw-r--r--openbox/config.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/openbox/config.c b/openbox/config.c
index 6a8dfaca..63ad6794 100644
--- a/openbox/config.c
+++ b/openbox/config.c
@@ -42,6 +42,7 @@ gint config_screen_firstdesk;
gboolean config_resize_redraw;
gint config_resize_popup_show;
+gint config_resize_popup_pos;
ObStackingLayer config_dock_layer;
gboolean config_dock_floating;
@@ -301,6 +302,12 @@ static void parse_resize(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
else if (parse_contains("Nonpixel", doc, n))
config_resize_popup_show = 1;
}
+ if ((n = parse_find_node("popupPosition", node))) {
+ if (parse_contains("Top", doc, n))
+ config_resize_popup_pos = 1;
+ else if (parse_contains("Center", doc, n))
+ config_resize_popup_pos = 0;
+ }
}
static void parse_dock(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
@@ -540,7 +547,8 @@ void config_startup(ObParseInst *i)
parse_register(i, "desktops", parse_desktops, NULL);
config_resize_redraw = TRUE;
- config_resize_popup_show = 1;
+ config_resize_popup_show = 1; /* nonpixel increments */
+ config_resize_popup_pos = 0; /* center of client */
parse_register(i, "resize", parse_resize, NULL);