aboutsummaryrefslogtreecommitdiff
path: root/rootston/seat.c
diff options
context:
space:
mode:
authorMarkus Ongyerth <ongy@ongy.net>2018-02-25 09:57:30 +0100
committerMarkus Ongyerth <ongy@ongy.net>2018-02-26 12:02:49 +0100
commitbb676013ed1b1b48847694a2159e3b009636b181 (patch)
tree18862338a2de095dfb41f4e451135fdab8af0b28 /rootston/seat.c
parent3bce37f99a0390ef085063cb222b5e96584ae3dd (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 'rootston/seat.c')
-rw-r--r--rootston/seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rootston/seat.c b/rootston/seat.c
index 1b7d05c4..9acbb737 100644
--- a/rootston/seat.c
+++ b/rootston/seat.c
@@ -721,7 +721,7 @@ void roots_seat_set_focus(struct roots_seat *seat, struct roots_view *view) {
#ifdef WLR_HAS_XWAYLAND
if (view && view->type == ROOTS_XWAYLAND_VIEW &&
- view->xwayland_surface->override_redirect) {
+ wlr_xwayland_surface_is_unmanaged(view->xwayland_surface)) {
return;
}
#endif