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:
parent
c9e29f2e0a
commit
16486739fa
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue