Skip to content

Commit

Permalink
clear surface on x_push_node (#4577)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva authored Mar 28, 2022
1 parent 41cd852 commit dba30fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions release-notes/bugfixes/6-fix-graphics-artifacts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
avoid graphics artifacts when changing the layout tree by initializing surfaces to all black
1 change: 1 addition & 0 deletions src/x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@ void x_push_node(Con *con) {
xcb_create_pixmap(conn, win_depth, con->frame_buffer.id, con->frame.id, width, height);
draw_util_surface_init(conn, &(con->frame_buffer), con->frame_buffer.id,
get_visualtype_by_id(get_visualid_by_depth(win_depth)), width, height);
draw_util_clear_surface(&(con->frame_buffer), (color_t){.red = 0.0, .green = 0.0, .blue = 0.0});

/* For the graphics context, we disable GraphicsExposure events.
* Those will be sent when a CopyArea request cannot be fulfilled
Expand Down

0 comments on commit dba30fc

Please sign in to comment.