refactor(event_handler): Abstract sink attaching

This commit is contained in:
Michael Carlberg
2016-12-23 05:08:19 +01:00
parent b765094a29
commit 8cff01e3d8
10 changed files with 54 additions and 52 deletions

View File

@ -79,16 +79,6 @@ 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);
}
/**
* Disconnect from the event registry
*/
void xworkspaces_module::teardown() {
m_connection.detach_sink(this, SINK_PRIORITY_MODULE);
}
/**