fix: Use defined event sink priority

This commit is contained in:
Michael Carlberg
2016-12-03 13:00:40 +01:00
parent a1ad4de470
commit 4776ec49df
9 changed files with 21 additions and 19 deletions

View File

@ -83,19 +83,17 @@ namespace modules {
// Make sure we get notified when root properties change
window{m_connection, m_connection.root()}.ensure_event_mask(XCB_EVENT_MASK_PROPERTY_CHANGE);
// Connect with the event registry
m_connection.attach_sink(this, SINK_PRIORITY_MODULE);
update();
}
void xworkspaces_module::start() {
// Connect with the event registry
m_connection.attach_sink(this, 3);
static_module::start();
}
/**
* Disconnect from the event registry
*/
void xworkspaces_module::teardown() {
m_connection.detach_sink(this, 3);
m_connection.detach_sink(this, SINK_PRIORITY_MODULE);
}
/**