1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00
polybar/include/x11/icccm.hpp

22 lines
715 B
C++
Raw Normal View History

#pragma once
#include <xcb/xcb_icccm.h>
#include "common.hpp"
2016-11-19 00:22:44 -05:00
POLYBAR_NS
namespace icccm_util {
2017-01-24 02:49:27 -05:00
string get_wm_name(xcb_connection_t* c, xcb_window_t w);
pair<string, string> get_wm_class(xcb_connection_t* c, xcb_window_t w);
string get_reply_string(xcb_icccm_get_text_property_reply_t* reply);
2017-01-24 02:49:27 -05:00
void set_wm_name(xcb_connection_t* c, xcb_window_t w, const char* wmname, size_t l, const char* wmclass, size_t l2);
void set_wm_protocols(xcb_connection_t* c, xcb_window_t w, vector<xcb_atom_t> flags);
bool get_wm_urgency(xcb_connection_t* c, xcb_window_t w);
void set_wm_size_hints(xcb_connection_t* c, xcb_window_t w, int x, int y, int width, int height);
} // namespace icccm_util
2016-11-19 00:22:44 -05:00
POLYBAR_NS_END