mirror of
https://github.com/polybar/polybar.git
synced 2026-03-01 21:58:53 +00:00
fix: Use defined event sink priority
This commit is contained in:
@ -60,14 +60,14 @@ screen::screen(connection& conn, const logger& logger, const config& conf)
|
||||
m_connection.clear_event_mask(m_root);
|
||||
|
||||
// Finally attach the sink the process randr events
|
||||
m_connection.attach_sink(this, 1);
|
||||
m_connection.attach_sink(this, SINK_PRIORITY_SCREEN);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deconstruct screen instance
|
||||
*/
|
||||
screen::~screen() {
|
||||
m_connection.detach_sink(this, 1);
|
||||
m_connection.detach_sink(this, SINK_PRIORITY_SCREEN);
|
||||
|
||||
if (m_proxy != XCB_NONE) {
|
||||
m_connection.destroy_window(m_proxy);
|
||||
|
||||
Reference in New Issue
Block a user