Automatically float xwayland windows

This commit is contained in:
emersion 2018-06-18 22:49:28 +01:00
parent 202ee51150
commit cda66e9a26
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
7 changed files with 116 additions and 26 deletions

25
include/sway/xwayland.h Normal file
View file

@ -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