mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 10:11:43 -05:00

The new message syntax: - Provides 10 commands instead of 60. - Allows multiple actions to be applied in one call. The client now returns an non zero exit code when a message fails. The `is_adjacent` function now handles vacant nodes.
24 lines
787 B
C
24 lines
787 B
C
#ifndef _QUERY_H
|
|
#define _QUERY_H
|
|
|
|
typedef enum {
|
|
DOMAIN_MONITOR,
|
|
DOMAIN_DESKTOP,
|
|
DOMAIN_WINDOW,
|
|
DOMAIN_TREE,
|
|
DOMAIN_HISTORY
|
|
} domain_t;
|
|
|
|
void query_monitors(coordinates_t, domain_t, char *);
|
|
void query_desktops(monitor_t *, domain_t, coordinates_t, unsigned int, char *);
|
|
void query_tree(desktop_t *, node_t *, char *, unsigned int);
|
|
void query_history(coordinates_t, char *);
|
|
void query_windows(coordinates_t, char *);
|
|
bool locate_window(xcb_window_t, coordinates_t *);
|
|
bool locate_desktop(char *, coordinates_t *);
|
|
bool locate_monitor(char *, coordinates_t *);
|
|
bool node_from_desc(char *, coordinates_t *, coordinates_t *);
|
|
bool desktop_from_desc(char *, coordinates_t *, coordinates_t *);
|
|
bool monitor_from_desc(char *, coordinates_t *, coordinates_t *);
|
|
|
|
#endif
|