Implement window_type criteria token

This commit is contained in:
Ryan Dwyer 2018-09-01 23:04:49 +10:00
parent 1f1b1b34d6
commit f4ec308376
4 changed files with 42 additions and 7 deletions

View file

@ -31,7 +31,7 @@ struct criteria {
uint32_t id; // X11 window ID
#endif
pcre *window_role;
uint32_t window_type;
enum atom_name window_type;
bool floating;
bool tiling;
char urgent; // 'l' for latest or 'o' for oldest

View file

@ -5,6 +5,7 @@
#include <xcb/xproto.h>
enum atom_name {
NET_WM_WINDOW_TYPE_NORMAL,
NET_WM_WINDOW_TYPE_DIALOG,
NET_WM_WINDOW_TYPE_UTILITY,
NET_WM_WINDOW_TYPE_TOOLBAR,