mirror of
https://github.com/polybar/polybar.git
synced 2026-02-13 18:45:37 +00:00
fix: Use defined event sink priority
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user