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

@ -98,7 +98,7 @@ namespace modules {
m_connection.ensure_event_mask(m_connection.root(), XCB_EVENT_MASK_PROPERTY_CHANGE);
// Connect with the event registry
m_connection.attach_sink(this, 1);
m_connection.attach_sink(this, SINK_PRIORITY_MODULE);
// Trigger the initial draw event
update();
@ -108,7 +108,7 @@ namespace modules {
* Disconnect from the event registry
*/
void xwindow_module::teardown() {
m_connection.detach_sink(this, 1);
m_connection.detach_sink(this, SINK_PRIORITY_MODULE);
}
/**