Consider rect changed when its position changes

This commit is contained in:
Łukasz Adamczak 2018-06-22 12:34:11 +02:00
parent 6c34063f95
commit 606050a700
1 changed files with 2 additions and 5 deletions

View File

@ -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 dont
* 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. */