From ace514ffc7b63f8e8a323d5c0a9d41c27a3a9732 Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Sun, 21 Feb 2021 12:53:32 +0200 Subject: [PATCH] Redraw buffer after showing window For some reason if unpausing via dunstctl the window is invisible until the next window update. Redrawing the buffer after showing fixes it. Fixes #827 --- src/x11/x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/x11/x.c b/src/x11/x.c index dda2ff3..31c88d7 100644 --- a/src/x11/x.c +++ b/src/x11/x.c @@ -736,6 +736,7 @@ void x_win_show(window winptr) if (win->visible) return; + x_shortcut_grab(&settings.close_ks); x_shortcut_grab(&settings.close_all_ks); x_shortcut_grab(&settings.context_ks); @@ -757,6 +758,8 @@ void x_win_show(window winptr) XMapRaised(xctx.dpy, win->xwin); win->visible = true; + + x_display_surface(win->root_surface, win, &win->dim); } /*