1 #pragma once 2 3 #include <xcb/xcb_icccm.h> 4 5 #include "common.hpp" 6 7 POLYBAR_NS 8 9 namespace icccm_util { 10 string get_wm_name(xcb_connection_t* c, xcb_window_t w); 11 string get_reply_string(xcb_icccm_get_text_property_reply_t* reply); 12 13 void set_wm_name(xcb_connection_t* c, xcb_window_t w, const char* wmname, size_t l, const char* wmclass, size_t l2); 14 void set_wm_protocols(xcb_connection_t* c, xcb_window_t w, vector<xcb_atom_t> flags); 15 bool get_wm_urgency(xcb_connection_t* c, xcb_window_t w); 16 } 17 18 POLYBAR_NS_END 19