summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2005-03-26 06:34:58 +0000
committerMikael Magnusson <mikachu@comhem.se>2005-03-26 06:34:58 +0000
commit4690af7f72af76d99ee5dc48da95c5050f54be11 (patch)
treef42c68892a7ae762f4c9a022db6b1e4339959a30 /openbox
parentcab723fac9e6b1f8d994c97c662690813470fe30 (diff)
noStrut actually works now
Diffstat (limited to 'openbox')
-rw-r--r--openbox/config.c4
-rw-r--r--openbox/config.h2
-rw-r--r--openbox/dock.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/openbox/config.c b/openbox/config.c
index f086a1a3..8c86b973 100644
--- a/openbox/config.c
+++ b/openbox/config.c
@@ -49,6 +49,7 @@ gint config_resize_popup_pos;
ObStackingLayer config_dock_layer;
gboolean config_dock_floating;
+gboolean config_dock_nostrut;
ObDirection config_dock_pos;
gint config_dock_x;
gint config_dock_y;
@@ -363,7 +364,7 @@ static void parse_dock(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
config_dock_y = parse_int(doc, n);
} else {
if ((n = parse_find_node("noStrut", node)))
- config_dock_floating = parse_bool(doc, n);
+ config_dock_nostrut = parse_bool(doc, n);
}
if ((n = parse_find_node("stacking", node))) {
if (parse_contains("top", doc, n))
@@ -574,6 +575,7 @@ void config_startup(ObParseInst *i)
config_dock_layer = OB_STACKING_LAYER_ABOVE;
config_dock_pos = OB_DIRECTION_NORTHEAST;
config_dock_floating = FALSE;
+ config_dock_nostrut = FALSE;
config_dock_x = 0;
config_dock_y = 0;
config_dock_orient = OB_ORIENTATION_VERT;
diff --git a/openbox/config.h b/openbox/config.h
index d7fc51f7..b04d06af 100644
--- a/openbox/config.h
+++ b/openbox/config.h
@@ -58,6 +58,8 @@ extern gint config_resize_popup_pos;
extern ObStackingLayer config_dock_layer;
/*! Is the dock floating */
extern gboolean config_dock_floating;
+/*! Don't use a strut for the dock */
+extern gboolean config_dock_nostrut;
/*! Where to place the dock if not floating */
extern ObDirection config_dock_pos;
/*! If config_dock_floating, this is the top-left corner's
diff --git a/openbox/dock.c b/openbox/dock.c
index b127d40b..ac09a913 100644
--- a/openbox/dock.c
+++ b/openbox/dock.c
@@ -410,7 +410,7 @@ void dock_configure()
if (!dock->dock_apps) {
STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0);
- } else if (config_dock_floating) {
+ } else if (config_dock_floating || config_dock_nostrut) {
STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0);
} else {