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:
parent
532784149e
commit
14805899fb
1 changed files with 3 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue