]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Also update pixmaps when the position of the deco_rect has changed (Thanks...
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 20 Mar 2011 17:07:07 +0000 (18:07 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 20 Mar 2011 17:07:07 +0000 (18:07 +0100)
include/data.h
src/x.c

index 33f1d0d1974cfa48fe59358349ef61435a03f619..843d0c9cc73437dbe9d8544743a4bb1343eabbb5 100644 (file)
@@ -107,7 +107,7 @@ struct deco_render_params {
     int border_style;
     struct width_height con_rect;
     struct width_height con_window_rect;
-    struct width_height con_deco_rect;
+    Rect con_deco_rect;
     uint32_t background;
     bool con_is_leaf;
     xcb_font_t font;
diff --git a/src/x.c b/src/x.c
index 0c8a7ead1dcd8ca528c98045576134b96132650f..681ff37084ef698347c0612c4aec64c93668d5b8 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -268,7 +268,7 @@ void x_draw_decoration(Con *con) {
     Rect *w = &(con->window_rect);
     p->con_rect = (struct width_height){ r->width, r->height };
     p->con_window_rect = (struct width_height){ w->width, w->height };
-    p->con_deco_rect = (struct width_height){ con->deco_rect.width, con->deco_rect.height };
+    p->con_deco_rect = con->deco_rect;
     p->background = config.client.background;
     p->con_is_leaf = con_is_leaf(con);
     p->font = config.font.id;