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.
This commit is contained in:
Patrick Ziegler 2018-08-21 21:06:58 +02:00 committed by GitHub
parent b32e48a440
commit 676d9d7e1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}