summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2003-01-22 05:17:10 +0000
committerHavoc Pennington <hp@src.gnome.org>2003-01-22 05:17:10 +0000
commitc9c4385315e383e20b6446b759ec2fcf8bbbd1fa (patch)
treee39af1cbca68518b66be16e8de206eb5513d2533
parent14f462e25612cc4d4f8ec474c3a7788bec6db9bf (diff)
downloadmetacity-c9c4385315e383e20b6446b759ec2fcf8bbbd1fa.tar.gz
(not for 2.2.0)
2003-01-22 Havoc Pennington <hp@pobox.com> (not for 2.2.0) * src/window.c (update_struts): be robust against the panel's lame "set a negative number for struts" thing, even though we'll also fix the panel.
-rw-r--r--ChangeLog8
-rw-r--r--src/window.c14
2 files changed, 22 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b545134b..14170208 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2003-01-22 Havoc Pennington <hp@pobox.com>
+
+ (not for 2.2.0)
+
+ * src/window.c (update_struts): be robust against the panel's
+ lame "set a negative number for struts" thing, even though
+ we'll also fix the panel.
+
2003-01-21 Havoc Pennington <hp@pobox.com>
(not for 2.2.0)
diff --git a/src/window.c b/src/window.c
index daca2941..c80ad8a4 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5173,6 +5173,20 @@ update_struts (MetaWindow *window)
window->top_strut = struts[2];
window->bottom_strut = struts[3];
+ meta_verbose ("_NET_WM_STRUT struts %d %d %d %d for window %s\n",
+ window->left_strut, window->right_strut,
+ window->top_strut, window->bottom_strut,
+ window->desc);
+
+ if (window->left_strut < 0)
+ window->left_strut = 0;
+ if (window->right_strut < 0)
+ window->right_strut = 0;
+ if (window->top_strut < 0)
+ window->top_strut = 0;
+ if (window->bottom_strut < 0)
+ window->bottom_strut = 0;
+
meta_verbose ("Using _NET_WM_STRUT struts %d %d %d %d for window %s\n",
window->left_strut, window->right_strut,
window->top_strut, window->bottom_strut,