1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2025-04-07 17:44:04 -04:00

renderer/layout: skip windows without pixmaps

There are some cases where a window might be missing its pixmap. Mainly
when a window is unmapped/destroyed during a backend reset (there are
many reasons for backend resets, e.g. resolution change,
unredir-if-possible, etc.). We skip windows like this.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-06-27 19:14:18 +01:00
parent 532784149e
commit 14805899fb
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -44,6 +44,9 @@ static bool layer_from_window(struct layer *out_layer, struct win *w, ivec2 size
if (!w->ever_damaged || w->paint_excluded) {
goto out;
}
if (w->win_image == NULL) {
goto out;
}
out_layer->scale = (vec2){
.x = win_animatable_get(w, WIN_SCRIPT_SCALE_X),