From 41e66c16f8571a514f49a97a9260ec36192bd862 Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Fri, 20 Jul 2018 14:11:09 +0300 Subject: [PATCH] Remove systray_cleanup() from drawin_systray_kickout() (#2301) The systray_cleanup() function gives up the _NET_SYSTEM_TRAY_Sn selection ownership and should be called only when Awesome exits. Calling systray_cleanup() from drawin_systray_kickout() is not correct, because drawin_systray_kickout() is called when the system tray window needs to be hidden, including the case when the last tray icon was removed and the tray became empty. Fixes: https://github.com/awesomeWM/awesome/issues/2301 Signed-off-by: Sergey Vlasov --- objects/drawin.c | 1 - 1 file changed, 1 deletion(-) diff --git a/objects/drawin.c b/objects/drawin.c index 08be721b7..3fd1cc435 100644 --- a/objects/drawin.c +++ b/objects/drawin.c @@ -156,7 +156,6 @@ drawin_systray_kickout(drawin_t *w) /* Who! Check that we're not deleting a drawin with a systray, because it * may be its parent. If so, we reparent to root before, otherwise it will * hurt very much. */ - systray_cleanup(); xcb_reparent_window(globalconf.connection, globalconf.systray.window, globalconf.screen->root,