1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-18 13:55:11 -05:00

fix(controller): Checked request to update root window event mask

This commit is contained in:
Michael Carlberg 2016-10-18 17:53:10 +02:00
parent 5323167b1e
commit f09858a1ed

View file

@ -153,8 +153,14 @@ class controller {
// Listen for events on the root window to be able to // Listen for events on the root window to be able to
// break the blocking wait call when cleaning up // break the blocking wait call when cleaning up
m_log.trace("controller: Listen for events on the root window"); m_log.trace("controller: Listen for events on the root window");
try {
const uint32_t value_list[1]{XCB_EVENT_MASK_STRUCTURE_NOTIFY}; const uint32_t value_list[1]{XCB_EVENT_MASK_STRUCTURE_NOTIFY};
m_connection.change_window_attributes(m_connection.root(), XCB_CW_EVENT_MASK, value_list); m_connection.change_window_attributes_checked(
m_connection.root(), XCB_CW_EVENT_MASK, value_list);
} catch (const std::exception& err) {
throw application_error("Failed to change root window event mask: " + string{err.what()});
}
try { try {
m_log.trace("controller: Setup bar renderer"); m_log.trace("controller: Setup bar renderer");