]> git.lizzy.rs Git - bspwm.git/blob - history.h
Add example bindings for history navigation
[bspwm.git] / history.h
1 #ifndef HISTORY_H
2 #define HISTORY_H
3
4 #include "types.h"
5
6 history_t *make_history(monitor_t *m, desktop_t *d, node_t *n);
7 void history_add(monitor_t *m, desktop_t *d, node_t *n);
8 void history_transfer_node(monitor_t *m, desktop_t *d, node_t *n);
9 void history_transfer_desktop(monitor_t *m, desktop_t *d);
10 void history_swap_nodes(monitor_t *m1, desktop_t *d1, node_t *n1, monitor_t *m2, desktop_t *d2, node_t *n2);
11 void history_swap_desktops(monitor_t *m1, desktop_t *d1, monitor_t *m2, desktop_t *d2);
12 void history_remove(desktop_t *d, node_t *n);
13 void empty_history(void);
14 node_t *history_get_node(desktop_t *d, node_t *n);
15 desktop_t *history_get_desktop(monitor_t *m, desktop_t *d);
16 monitor_t *history_get_monitor(monitor_t *m);
17 bool history_find_node(history_dir_t hdi, coordinates_t *ref, coordinates_t *dst, client_select_t sel);
18 bool history_find_desktop(history_dir_t hdi, coordinates_t *ref, coordinates_t *dst, desktop_select_t sel);
19 bool history_find_monitor(history_dir_t hdi, coordinates_t *ref, coordinates_t *dst, desktop_select_t sel);
20 int history_rank(desktop_t *d, node_t *n);
21
22 #endif