fix(xwindow): Ignore xcb timestamp

This commit is contained in:
Michael Carlberg 2016-11-19 04:34:46 +01:00
parent ab5666a7ea
commit 1b159786f0
2 changed files with 1 additions and 7 deletions

View File

@ -82,9 +82,7 @@ namespace modules {
static constexpr auto TAG_LABEL = "<label>";
xcb_ewmh_connection_t m_ewmh;
xcb_timestamp_t m_timestamp;
unique_ptr<active_window> m_active;
label_t m_label;
};
}

View File

@ -56,9 +56,7 @@ namespace modules {
* Handler for XCB_PROPERTY_NOTIFY events
*/
void xwindow_module::handle(const evt::property_notify& evt) {
if (evt->time <= m_timestamp) {
return;
} else if (evt->atom == _NET_ACTIVE_WINDOW) {
if (evt->atom == _NET_ACTIVE_WINDOW) {
update();
} else if (evt->atom == _NET_CURRENT_DESKTOP) {
update();
@ -69,8 +67,6 @@ namespace modules {
} else {
return;
}
m_timestamp = evt->time;
}
/**