summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2006-03-13 11:51:40 +0000
committerMikael Magnusson <mikachu@comhem.se>2006-03-13 11:51:40 +0000
commitbc1f845ada8b07dc246373706da676979a9973d2 (patch)
tree2120833a0249d96379a6f4291695e81b3e224934
parent31527192c84918b793a0203514465081e9f2e5f1 (diff)
resize label after background pixmap has updated to avoid display problems
-rw-r--r--openbox/frame.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 47c3f027..c55ff290 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -417,7 +417,6 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
if (resized) {
framerender_frame(self);
-
frame_adjust_shape(self);
}
@@ -436,6 +435,9 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
if (focus_cycle_target == self->client)
focus_cycle_draw_indicator();
}
+ if (resized && (self->decorations & OB_FRAME_DECOR_TITLEBAR))
+ XResizeWindow(ob_display, self->label, self->label_width,
+ ob_rr_theme->label_height);
}
void frame_adjust_state(ObFrame *self)
@@ -625,9 +627,6 @@ static void layout_title(ObFrame *self)
}
if (self->label_width < 1) self->label_width = 1;
- XResizeWindow(ob_display, self->label, self->label_width,
- ob_rr_theme->label_height);
-
if (!n) XUnmapWindow(ob_display, self->icon);
if (!d) XUnmapWindow(ob_display, self->desk);
if (!s) XUnmapWindow(ob_display, self->shade);