From 676d9d7e1adf880d0a3ba8b091a7987f933c05b1 Mon Sep 17 00:00:00 2001
From: Patrick Ziegler
Date: Tue, 21 Aug 2018 21:06:58 +0200
Subject: [PATCH] fix(tray): Reconfigure tray on error (#1392)
This will fix the issue of the tray container not being
properly reconfigured when a tray client fails to be added
or removed.
---
src/x11/tray_manager.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/x11/tray_manager.cpp b/src/x11/tray_manager.cpp
index ae3f0476..c297aeff 100644
--- a/src/x11/tray_manager.cpp
+++ b/src/x11/tray_manager.cpp
@@ -754,7 +754,7 @@ void tray_manager::process_docking_request(xcb_window_t win) {
m_log.err(err.what());
} catch (const xpp::x::error::window& err) {
m_log.err("Failed to query _XEMBED_INFO, removing client... (%s)", err.what());
- remove_client(win, false);
+ remove_client(win, true);
return;
}
@@ -1044,7 +1044,7 @@ void tray_manager::handle(const evt::property_notify& evt) {
return;
} catch (const xpp::x::error::window& err) {
m_log.err("Failed to query _XEMBED_INFO, removing client... (%s)", err.what());
- remove_client(win, false);
+ remove_client(win, true);
return;
}