Skip to content

Commit

Permalink
renderer/layout: skip windows without pixmap
Browse files Browse the repository at this point in the history
  • Loading branch information
XoDefender committed Jul 7, 2024
1 parent 3d2f4d7 commit f608cc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer/layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ layer_from_window(struct layer *out_layer, struct managed_win *w, struct geometr
if (!w->ever_damaged || w->paint_excluded) {
goto out;
}
if (w->win_image == NULL) {
goto out;
}

out_layer->origin = (struct coord){.x = w->g.x, .y = w->g.y};
out_layer->size = (struct geometry){.width = w->widthb, .height = w->heightb};
Expand Down

0 comments on commit f608cc7

Please sign in to comment.