aboutsummaryrefslogtreecommitdiff
path: root/include/sway/xwayland.h
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-06-18 22:49:28 +0100
committeremersion <contact@emersion.fr>2018-06-18 22:52:10 +0100
commitcda66e9a263d8467b6d1857808305d5e9f7bc3cd (patch)
tree7e773d03ea9cecf959ba75598fd1a2d18dbd604c /include/sway/xwayland.h
parent202ee511503bc7c6a18dec440ac3cdb8d5e8f859 (diff)
Automatically float xwayland windows
Diffstat (limited to 'include/sway/xwayland.h')
-rw-r--r--include/sway/xwayland.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/sway/xwayland.h b/include/sway/xwayland.h
new file mode 100644
index 00000000..78d1053b
--- /dev/null
+++ b/include/sway/xwayland.h
@@ -0,0 +1,25 @@
+#ifndef SWAY_XWAYLAND_H
+#define SWAY_XWAYLAND_H
+
+#include <wlr/xwayland.h>
+#include <xcb/xproto.h>
+
+enum atom_name {
+ NET_WM_WINDOW_TYPE_DIALOG,
+ NET_WM_WINDOW_TYPE_UTILITY,
+ NET_WM_WINDOW_TYPE_TOOLBAR,
+ NET_WM_WINDOW_TYPE_SPLASH,
+ NET_WM_STATE_MODAL,
+ ATOM_LAST,
+};
+
+struct sway_xwayland {
+ struct wlr_xwayland *wlr_xwayland;
+ struct wlr_xcursor_manager *xcursor_manager;
+
+ xcb_atom_t atoms[ATOM_LAST];
+};
+
+void handle_xwayland_ready(struct wl_listener *listener, void *data);
+
+#endif