mirror of https://github.com/polybar/polybar.git
fix(tray): Catch error while processing docking requests
This commit is contained in:
parent
bcd1774370
commit
178b656d08
|
@ -521,7 +521,12 @@ class traymanager
|
|||
|
||||
switch (evt->data.data32[1]) {
|
||||
case SYSTEM_TRAY_REQUEST_DOCK:
|
||||
process_docking_request(evt->data.data32[2]);
|
||||
try {
|
||||
process_docking_request(evt->data.data32[2]);
|
||||
} catch (const std::exception& err) {
|
||||
auto id = m_connection.id(evt->data.data32[2]);
|
||||
m_logger.err("Error while processing docking request for %s (%s)", id, err.what());
|
||||
}
|
||||
return;
|
||||
|
||||
case SYSTEM_TRAY_BEGIN_MESSAGE:
|
||||
|
|
Loading…
Reference in New Issue