2016-11-19 04:03:18 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <xcb/xcb_icccm.h>
|
|
|
|
|
|
|
|
#include "common.hpp"
|
|
|
|
|
2016-11-19 06:22:44 +01:00
|
|
|
POLYBAR_NS
|
2016-11-19 04:03:18 +01:00
|
|
|
|
|
|
|
namespace icccm_util {
|
2017-01-24 08:49:27 +01:00
|
|
|
string get_wm_name(xcb_connection_t* c, xcb_window_t w);
|
2016-11-19 04:03:18 +01:00
|
|
|
string get_reply_string(xcb_icccm_get_text_property_reply_t* reply);
|
2017-01-24 08:49:27 +01: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);
|
2017-02-19 23:25:19 -08:00
|
|
|
bool get_wm_urgency(xcb_connection_t* c, xcb_window_t w);
|
2022-02-21 21:23:52 +01:00
|
|
|
|
|
|
|
void set_wm_size_hints(xcb_connection_t* c, xcb_window_t w, int x, int y, int width, int height);
|
2016-11-19 04:03:18 +01:00
|
|
|
}
|
|
|
|
|
2016-11-19 06:22:44 +01:00
|
|
|
POLYBAR_NS_END
|