diff options
author | 2018-09-01 10:37:42 -0400 | |
---|---|---|
committer | 2018-09-01 10:37:42 -0400 | |
commit | 4ac67d6408fea10aa229b266d09c2d4f92692691 (patch) | |
tree | b20160b4d0b0798bd0b6a6050a455b5285479442 /include | |
parent | Merge pull request #2546 from RyanDwyer/fix-transaction-spamming (diff) | |
parent | Implement window_type criteria token (diff) | |
download | sway-4ac67d6408fea10aa229b266d09c2d4f92692691.tar.gz sway-4ac67d6408fea10aa229b266d09c2d4f92692691.tar.zst sway-4ac67d6408fea10aa229b266d09c2d4f92692691.zip |
Merge pull request #2550 from RyanDwyer/window-type-criteria
Implement window_type criteria token
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/criteria.h | 2 | ||||
-rw-r--r-- | include/sway/xwayland.h | 1 |
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 { | |||
31 | uint32_t id; // X11 window ID | 31 | uint32_t id; // X11 window ID |
32 | #endif | 32 | #endif |
33 | pcre *window_role; | 33 | pcre *window_role; |
34 | uint32_t window_type; | 34 | enum atom_name window_type; |
35 | bool floating; | 35 | bool floating; |
36 | bool tiling; | 36 | bool tiling; |
37 | char urgent; // 'l' for latest or 'o' for oldest | 37 | 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 @@ | |||
5 | #include <xcb/xproto.h> | 5 | #include <xcb/xproto.h> |
6 | 6 | ||
7 | enum atom_name { | 7 | enum atom_name { |
8 | NET_WM_WINDOW_TYPE_NORMAL, | ||
8 | NET_WM_WINDOW_TYPE_DIALOG, | 9 | NET_WM_WINDOW_TYPE_DIALOG, |
9 | NET_WM_WINDOW_TYPE_UTILITY, | 10 | NET_WM_WINDOW_TYPE_UTILITY, |
10 | NET_WM_WINDOW_TYPE_TOOLBAR, | 11 | NET_WM_WINDOW_TYPE_TOOLBAR, |