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

wm/win: don't use ps->backend_data when unredirected

Because it will be NULL.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-10-18 16:22:54 +01:00
parent c9e29f2e0a
commit 16486739fa
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -478,8 +478,10 @@ void win_process_image_flags(session_t *ps, struct win *w) {
return;
}
if (win_check_flags_all(w, WIN_FLAGS_PIXMAP_ERROR)) {
// We have previously failed to bind the pixmap, don't try again.
if (win_check_flags_all(w, WIN_FLAGS_PIXMAP_ERROR) || !ps->redirected) {
// 1. We have previously failed to bind the pixmap, don't try again.
// 2. If we aren't redirected, window images will be refreshed upon
// redirection anyway.
win_clear_flags(w, WIN_FLAGS_PIXMAP_STALE);
return;
}