Properly react when a client's strut changes.

Previously it would only react if the height of the strut changed, not if its
start/end changed (that was a long-standing bug).
This commit is contained in:
Dana Jansens 2009-12-09 14:00:51 -05:00
parent 437739b6a3
commit 543828c23f

View file

@ -2111,7 +2111,7 @@ void client_update_strut(ObClient *self)
STRUT_PARTIAL_SET(strut, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0);
if (!STRUT_EQUAL(strut, self->strut)) {
if (!PARTIAL_STRUT_EQUAL(strut, self->strut)) {
self->strut = strut;
/* updating here is pointless while we're being mapped cuz we're not in