2016-11-02 19:22:45 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <X11/Xlib-xcb.h>
|
|
|
|
#include <xcb/xcb_util.h>
|
|
|
|
|
|
|
|
#include "common.hpp"
|
2016-12-03 15:44:08 +00:00
|
|
|
#include "utils/memory.hpp"
|
2016-11-26 05:13:20 +00:00
|
|
|
#include "x11/randr.hpp"
|
2016-11-02 19:22:45 +00:00
|
|
|
|
2016-11-19 05:22:44 +00:00
|
|
|
POLYBAR_NS
|
2016-11-02 19:22:45 +00:00
|
|
|
|
2016-11-04 17:54:33 +00:00
|
|
|
class connection;
|
2016-11-26 05:13:20 +00:00
|
|
|
class config;
|
2016-11-04 17:54:33 +00:00
|
|
|
|
2016-11-02 19:22:45 +00:00
|
|
|
namespace xutils {
|
2016-12-14 14:09:11 +00:00
|
|
|
shared_ptr<xcb_connection_t> get_connection();
|
2016-12-03 15:44:08 +00:00
|
|
|
int get_connection_fd();
|
2016-11-02 19:22:45 +00:00
|
|
|
|
|
|
|
void pack_values(uint32_t mask, const uint32_t* src, uint32_t* dest);
|
|
|
|
void pack_values(uint32_t mask, const xcb_params_cw_t* src, uint32_t* dest);
|
|
|
|
void pack_values(uint32_t mask, const xcb_params_gc_t* src, uint32_t* dest);
|
|
|
|
void pack_values(uint32_t mask, const xcb_params_configure_window_t* src, uint32_t* dest);
|
2016-11-04 17:54:33 +00:00
|
|
|
|
|
|
|
void visibility_notify(connection& conn, const xcb_window_t& win, xcb_visibility_t state);
|
2016-11-24 22:57:25 +00:00
|
|
|
|
|
|
|
void compton_shadow_exclude(connection& conn, const xcb_window_t& win);
|
2016-11-02 19:22:45 +00:00
|
|
|
}
|
|
|
|
|
2016-11-19 05:22:44 +00:00
|
|
|
POLYBAR_NS_END
|