From: Łukasz Adamczak Date: Fri, 22 Jun 2018 10:34:11 +0000 (+0200) Subject: Consider rect changed when its position changes X-Git-Tag: 4.16~73^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=606050a700802d1acbc42bd8961ff7ec3ee74e74;p=i3%2Fi3 Consider rect changed when its position changes --- diff --git a/src/x.c b/src/x.c index 25f341b6..1f54db83 100644 --- a/src/x.c +++ b/src/x.c @@ -796,11 +796,8 @@ void x_push_node(Con *con) { * background and only afterwards change the window size. This reduces * flickering. */ - /* As the pixmap only depends on the size and not on the position, it - * is enough to check if width/height have changed. Also, we don’t - * create a pixmap at all when the window is actually not visible - * (height == 0) or when it is not needed. */ - bool has_rect_changed = (state->rect.width != rect.width || state->rect.height != rect.height); + bool has_rect_changed = (state->rect.x != rect.x || state->rect.y != rect.y || + state->rect.width != rect.width || state->rect.height != rect.height); /* Check if the container has an unneeded pixmap left over from * previously having a border or titlebar. */