From b88d98d6b14c26703c2ed956ab8da6512bdb988c Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Fri, 27 Mar 2020 20:51:40 +0000 Subject: [PATCH] Re-acquire root pixmap after root reconfiguration In configure_root, the root pixmap is freed by destroy_backend, and is never acquired again. Usually this doesn't seem to cause any problems, maybe because we immediately receives a root damage notification. But under rare circumstances we ended up not showing the wallpaper. Signed-off-by: Yuxuan Shui --- src/picom.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/picom.c b/src/picom.c index 643d53e..74fb2a9 100644 --- a/src/picom.c +++ b/src/picom.c @@ -848,6 +848,9 @@ void configure_root(session_t *ps, int width, int height) { ev_break(ps->loop, EVBREAK_ALL); return; } + + // Re-acquire the root pixmap. + root_damaged(ps); } force_repaint(ps); }