From bb676013ed1b1b48847694a2159e3b009636b181 Mon Sep 17 00:00:00 2001 From: Markus Ongyerth Date: Sun, 25 Feb 2018 09:57:30 +0100 Subject: 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. --- include/rootston/desktop.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/rootston') diff --git a/include/rootston/desktop.h b/include/rootston/desktop.h index ab3ae61a..467de8ab 100644 --- a/include/rootston/desktop.h +++ b/include/rootston/desktop.h @@ -78,6 +78,7 @@ void view_apply_damage(struct roots_view *view); void view_damage_whole(struct roots_view *view); void view_update_position(struct roots_view *view, double x, double y); void view_update_size(struct roots_view *view, uint32_t width, uint32_t height); +void view_initial_focus(struct roots_view *view); void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data); void handle_xdg_shell_surface(struct wl_listener *listener, void *data); -- cgit v1.2.3