summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-01-14 14:57:18 -0500
committerDana Jansens <danakj@orodu.net>2010-01-14 14:57:18 -0500
commitba747518bb400a02e43b69602d90e39dea0ea9a3 (patch)
treeaefaed4c38ca661f51ce31ce0f0d1ba861dcd734 /openbox
parent62e36ad0410ce888e7097e7bce5cbbf67b5b6290 (diff)
don't resize the label to 0
Diffstat (limited to 'openbox')
-rw-r--r--openbox/frame.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 20697d32..67adb405 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -862,10 +862,12 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
if (focus_cycle_target == self->client)
focus_cycle_update_indicator(self->client);
}
- if (resized && (self->decorations & OB_FRAME_DECOR_TITLEBAR))
+ if (resized && (self->decorations & OB_FRAME_DECOR_TITLEBAR) &&
+ self->label_width)
+ {
XResizeWindow(ob_display, self->label, self->label_width,
ob_rr_theme->label_height);
-
+ }
}
static void frame_adjust_cursors(ObFrame *self)