From 64c65f3b67364bb82420dbdd05d7e655b1d74d43 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sun, 21 Mar 2004 00:48:48 +0000 Subject: adds option to have the popup centered above the window instead of centered, and fix the last occurance of that reversed variable --- openbox/config.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'openbox/config.c') 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); -- cgit v1.2.3