diff options
author | Markus Ongyerth <ongy@ongy.net> | 2018-02-25 09:57:30 +0100 |
---|---|---|
committer | Markus Ongyerth <ongy@ongy.net> | 2018-02-26 12:02:49 +0100 |
commit | bb676013ed1b1b48847694a2159e3b009636b181 (patch) | |
tree | 18862338a2de095dfb41f4e451135fdab8af0b28 /include/wlr/xwayland.h | |
parent | 3bce37f99a0390ef085063cb222b5e96584ae3dd (diff) |
add xwayland unmanaged tests to support dmenu
This adds `wlr_xwayland_surface_is_unamanged`, to allow compositors more
fine grained control over XWayland focus.
A surface that is unmanaged should not receive focus, while other
windows that are just override redirect may want it (dmenu).
The way unamanged is determined is taken from wlc.
Diffstat (limited to 'include/wlr/xwayland.h')
-rw-r--r-- | include/wlr/xwayland.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h index ad7ceb83..0d4b91ed 100644 --- a/include/wlr/xwayland.h +++ b/include/wlr/xwayland.h @@ -186,4 +186,5 @@ void wlr_xwayland_surface_set_fullscreen(struct wlr_xwayland_surface *surface, void wlr_xwayland_set_seat(struct wlr_xwayland *xwayland, struct wlr_seat *seat); +bool wlr_xwayland_surface_is_unmanaged(const struct wlr_xwayland_surface *surface); #endif |