2023-05-15 11:06:21 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <xcb/xcb.h>
|
|
|
|
|
|
|
|
#include "x11/connection.hpp"
|
|
|
|
#include "x11/ewmh.hpp"
|
|
|
|
|
|
|
|
POLYBAR_NS
|
|
|
|
|
|
|
|
namespace restack_util {
|
2023-05-15 11:49:32 +00:00
|
|
|
using params = std::pair<xcb_window_t, xcb_stack_mode_t>;
|
|
|
|
|
2023-05-15 11:06:21 +00:00
|
|
|
void restack_relative(connection& conn, xcb_window_t win, xcb_window_t sibling, xcb_stack_mode_t stack_mode);
|
2023-05-15 12:00:00 +00:00
|
|
|
string stack_mode_to_string(xcb_stack_mode_t mode);
|
2023-05-15 11:49:32 +00:00
|
|
|
bool are_siblings(connection& conn, xcb_window_t win, xcb_window_t sibling);
|
|
|
|
params get_bottom_params(connection& conn, xcb_window_t bar_window);
|
2023-05-15 12:00:00 +00:00
|
|
|
params get_ewmh_params(connection& conn);
|
2023-05-15 11:49:32 +00:00
|
|
|
params get_generic_params(connection& conn, xcb_window_t bar_window);
|
2023-05-15 11:06:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
POLYBAR_NS_END
|