From 606050a700802d1acbc42bd8961ff7ec3ee74e74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Adamczak?= Date: Fri, 22 Jun 2018 12:34:11 +0200 Subject: [PATCH] Consider rect changed when its position changes --- src/x.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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. */ -- 2.39.5