2016-11-04 13:54:33 -04:00
|
|
|
#pragma once
|
|
|
|
|
2016-11-20 17:04:31 -05:00
|
|
|
#include <xcb/xcb.h>
|
|
|
|
|
2016-11-04 13:54:33 -04:00
|
|
|
#include "common.hpp"
|
|
|
|
|
2016-11-19 00:22:44 -05:00
|
|
|
POLYBAR_NS
|
2016-11-04 13:54:33 -04:00
|
|
|
|
|
|
|
namespace wm_util {
|
2016-12-05 14:41:00 -05:00
|
|
|
void set_wm_name(xcb_connection_t* conn, xcb_window_t win, const string& wm_name, const string& wm_class);
|
|
|
|
void set_wm_protocols(xcb_connection_t* conn, xcb_window_t win, vector<xcb_atom_t> flags);
|
|
|
|
void set_wm_window_type(xcb_connection_t* conn, xcb_window_t win, vector<xcb_atom_t> types);
|
|
|
|
void set_wm_state(xcb_connection_t* conn, xcb_window_t win, vector<xcb_atom_t> states);
|
|
|
|
void set_wm_pid(xcb_connection_t* conn, xcb_window_t win, pid_t pid);
|
|
|
|
void set_wm_desktop(xcb_connection_t* conn, xcb_window_t win, uint32_t desktop = -1u);
|
2016-11-04 13:54:33 -04:00
|
|
|
}
|
|
|
|
|
2016-11-19 00:22:44 -05:00
|
|
|
POLYBAR_NS_END
|