2016-11-18 22:03:18 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <xcb/xcb_ewmh.h>
|
|
|
|
|
|
|
|
#include "common.hpp"
|
|
|
|
#include "x11/connection.hpp"
|
|
|
|
|
2016-11-19 00:22:44 -05:00
|
|
|
POLYBAR_NS
|
2016-11-18 22:03:18 -05:00
|
|
|
|
|
|
|
namespace ewmh_util {
|
|
|
|
bool setup(connection& conn, xcb_ewmh_connection_t* dst);
|
|
|
|
bool supports(xcb_ewmh_connection_t* ewmh, xcb_atom_t atom);
|
|
|
|
|
|
|
|
xcb_window_t get_active_window(xcb_ewmh_connection_t* conn);
|
|
|
|
|
|
|
|
string get_visible_name(xcb_ewmh_connection_t* conn, xcb_window_t win);
|
|
|
|
string get_icon_name(xcb_ewmh_connection_t* conn, xcb_window_t win);
|
|
|
|
string get_reply_string(xcb_ewmh_get_utf8_strings_reply_t* reply);
|
|
|
|
}
|
|
|
|
|
2016-11-19 00:22:44 -05:00
|
|
|
POLYBAR_NS_END
|