Merge pull request #4336 from tbgiles/next

Clear framebuffer for containers with visible windows
This commit is contained in:
Orestis Floros 2021-02-07 19:10:23 +01:00 committed by GitHub
commit 5df0b4b571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -33,3 +33,4 @@ strongly encouraged to upgrade.
• i3bar: properly restart status command after config change
• i3bar: exit with 1 when a wrong command line argument is used
• fix commented-out rofi call in default i3 config
• clear pixmap before drawing to prevent visual garbage

View File

@ -537,6 +537,9 @@ void x_draw_decoration(Con *con) {
/* 2: draw the client.background, but only for the parts around the window_rect */
if (con->window != NULL) {
/* Clear visible windows before beginning to draw */
draw_util_clear_surface(&(con->frame_buffer), (color_t){.red = 0.0, .green = 0.0, .blue = 0.0});
/* top area */
draw_util_rectangle(&(con->frame_buffer), config.client.background,
0, 0, r->width, w->y);