polybar-dwm/include/utils/restack.hpp
patrick96 b11a2ff653 restack: Add bottom restacking strategy
For now this is the same as the generic one
2023-05-15 14:44:50 +02:00

20 lines
541 B
C++

#pragma once
#include <xcb/xcb.h>
#include "x11/connection.hpp"
#include "x11/ewmh.hpp"
POLYBAR_NS
namespace restack_util {
using params = std::pair<xcb_window_t, xcb_stack_mode_t>;
void restack_relative(connection& conn, xcb_window_t win, xcb_window_t sibling, xcb_stack_mode_t stack_mode);
bool are_siblings(connection& conn, xcb_window_t win, xcb_window_t sibling);
params get_bottom_params(connection& conn, xcb_window_t bar_window);
params get_generic_params(connection& conn, xcb_window_t bar_window);
}
POLYBAR_NS_END