mirror of
https://github.com/polybar/polybar.git
synced 2026-03-02 14:24:01 +00:00
refactor(connection): Listen for property notify by default
This commit is contained in:
@ -47,7 +47,7 @@ int main(int argc, char** argv) {
|
||||
XInitThreads();
|
||||
|
||||
// Store the xcb connection pointer with a disconnect deleter
|
||||
shared_ptr<xcb_connection_t> xcbconn{xutils::get_connection(), xutils::xcb_connection_deleter{}};
|
||||
unique_ptr<xcb_connection_t, xutils::xcb_connection_deleter> xcbconn{xutils::get_connection()};
|
||||
|
||||
if (!xcbconn) {
|
||||
logger.err("A connection to X could not be established... ");
|
||||
@ -57,6 +57,7 @@ int main(int argc, char** argv) {
|
||||
connection& conn{connection::make(&*xcbconn)};
|
||||
conn.preload_atoms();
|
||||
conn.query_extensions();
|
||||
conn.ensure_event_mask(conn.root(), XCB_EVENT_MASK_PROPERTY_CHANGE);
|
||||
|
||||
//==================================================
|
||||
// Parse command line arguments
|
||||
|
||||
Reference in New Issue
Block a user