From e09e29968afef7c40604cccad47e6f62e47e32bd Mon Sep 17 00:00:00 2001 From: Sascha kruse Date: Thu, 13 Sep 2018 16:03:26 +0200 Subject: [PATCH] draw the window before showing it Before this commit when using Dunst with multiple displays and follow mode mouse/keyboard on a new notification (when no other notifications are shown) a black window flickers up at the screen where the last notification was shown. By calling draw() before x_window_show the new window position will be calculated and the window will be moved there before the window is shown and thus remove the flickering. --- src/dunst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dunst.c b/src/dunst.c index 27c2872..5abd86e 100644 --- a/src/dunst.c +++ b/src/dunst.c @@ -52,6 +52,7 @@ static gboolean run(void *data) static gint64 next_timeout = 0; if (!x_win_visible(win) && queues_length_displayed() > 0) { + draw(); x_win_show(win); }