mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
Don't release window resource when unredirected
Because when the screen is unredirected, the window resource would have already been freed. Fix a NULL pointer deref. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
684d95988d
commit
5d321c85f5
1 changed files with 1 additions and 1 deletions
|
@ -640,7 +640,7 @@ void win_on_win_size_change(session_t *ps, win *w) {
|
|||
w->shadow_height = w->heightb + ps->o.shadow_radius * 2;
|
||||
w->flags |= WFLAG_SIZE_CHANGE;
|
||||
// Invalidate the shadow we built
|
||||
if (ps->o.experimental_backends) {
|
||||
if (ps->o.experimental_backends && ps->redirected) {
|
||||
if (w->state == WSTATE_MAPPED ||
|
||||
w->state == WSTATE_MAPPING ||
|
||||
w->state == WSTATE_FADING) {
|
||||
|
|
Loading…
Reference in a new issue