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

31 lines
889 B
C++
Raw Normal View History

2016-11-02 15:22:45 -04:00
#pragma once
#include <X11/Xlib-xcb.h>
#include <xcb/xcb_util.h>
#include "common.hpp"
2016-11-26 00:13:20 -05:00
#include "x11/randr.hpp"
2016-11-02 15:22:45 -04:00
2016-11-19 00:22:44 -05:00
POLYBAR_NS
2016-11-02 15:22:45 -04:00
2016-11-04 13:54:33 -04:00
class connection;
2016-11-26 00:13:20 -05:00
class config;
2016-11-04 13:54:33 -04:00
2016-11-02 15:22:45 -04:00
namespace xutils {
xcb_connection_t* get_connection();
2016-11-26 00:13:20 -05:00
uint32_t event_timer_ms(const config& conf, const xcb_button_press_event_t&);
uint32_t event_timer_ms(const config& conf, const xcb_randr_notify_event_t&);
2016-11-02 15:22:45 -04: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 13:54:33 -04:00
void visibility_notify(connection& conn, const xcb_window_t& win, xcb_visibility_t state);
void compton_shadow_exclude(connection& conn, const xcb_window_t& win);
2016-11-02 15:22:45 -04:00
}
2016-11-19 00:22:44 -05:00
POLYBAR_NS_END