aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-09-01 10:37:42 -0400
committerGitHub <noreply@github.com>2018-09-01 10:37:42 -0400
commit4ac67d6408fea10aa229b266d09c2d4f92692691 (patch)
treeb20160b4d0b0798bd0b6a6050a455b5285479442 /include/sway
parent1f1b1b34d6398d463658317dea06f640482f3caa (diff)
parentf4ec3083766280a5197cf40680bf991cc9afa41b (diff)
Merge pull request #2550 from RyanDwyer/window-type-criteria
Implement window_type criteria token
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/criteria.h2
-rw-r--r--include/sway/xwayland.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/criteria.h b/include/sway/criteria.h
index 7a1e547b..af12ffd7 100644
--- a/include/sway/criteria.h
+++ b/include/sway/criteria.h
@@ -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
diff --git a/include/sway/xwayland.h b/include/sway/xwayland.h
index 78d1053b..121edad3 100644
--- a/include/sway/xwayland.h
+++ b/include/sway/xwayland.h
@@ -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,