Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3313 from czak/fix-border-artifacts
Browse files Browse the repository at this point in the history
Border artifacts when moving window
  • Loading branch information
Airblader committed Jun 22, 2018
2 parents 6c34063 + 606050a commit d8bb827
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/x.c
Expand Up @@ -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. */
Expand Down

0 comments on commit d8bb827

Please sign in to comment.