Implement focus_on_window_activation

Depends on https://github.com/swaywm/wlroots/pull/1223
This commit is contained in:
Ryan Dwyer 2018-09-02 15:03:58 +10:00
parent 159edc6d13
commit f057a0195e
8 changed files with 86 additions and 0 deletions

View file

@ -167,6 +167,7 @@ struct sway_xwayland_view {
struct wl_listener request_maximize;
struct wl_listener request_configure;
struct wl_listener request_fullscreen;
struct wl_listener request_activate;
struct wl_listener set_title;
struct wl_listener set_class;
struct wl_listener set_window_type;
@ -259,6 +260,11 @@ void view_autoconfigure(struct sway_view *view);
void view_set_activated(struct sway_view *view, bool activated);
/**
* Called when the view requests to be focused.
*/
void view_request_activate(struct sway_view *view);
void view_set_tiled(struct sway_view *view, bool tiled);
void view_close(struct sway_view *view);