Skip to content

Commit

Permalink
wm/win: don't use ps->backend_data when unredirected
Browse files Browse the repository at this point in the history
Because it will be NULL.

Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Oct 18, 2024
1 parent c9e29f2 commit 1648673
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wm/win.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1648673

Please sign in to comment.