diff options
| author | Drew DeVault <[email protected]> | 2017-12-06 12:06:42 -0500 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2017-12-06 12:06:42 -0500 | 
| commit | a89d1333f1de52e788ccab8899ce79ede5d3192e (patch) | |
| tree | 2864dc44c17250428831a00471a8ee3e96b956a2 /sway/desktop/wl_shell.c | |
| parent | 3fe64482bb269a3dcceeaf1107b9d59dc60eb8d0 (diff) | |
| parent | 47f268d8fa83a08cd5c07f2ce50c2ce8b93126de (diff) | |
Merge pull request #1504 from acrisci/feature/view-activate
view activate
Diffstat (limited to 'sway/desktop/wl_shell.c')
| -rw-r--r-- | sway/desktop/wl_shell.c | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/desktop/wl_shell.c b/sway/desktop/wl_shell.c index b2e026ef..3f5a358a 100644 --- a/sway/desktop/wl_shell.c +++ b/sway/desktop/wl_shell.c @@ -45,6 +45,10 @@ static void set_position(struct sway_view *view, double ox, double oy) {  	view->swayc->y = oy;  } +static void set_activated(struct sway_view *view, bool activated) { +	// no way to activate wl_shell +} +  static void handle_commit(struct wl_listener *listener, void *data) {  	struct sway_wl_shell_surface *sway_surface =  		wl_container_of(listener, sway_surface, commit); @@ -96,6 +100,7 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) {  	sway_view->iface.get_prop = get_prop;  	sway_view->iface.set_size = set_size;  	sway_view->iface.set_position = set_position; +	sway_view->iface.set_activated = set_activated;  	sway_view->wlr_wl_shell_surface = shell_surface;  	sway_view->sway_wl_shell_surface = sway_surface;  	sway_view->surface = shell_surface->surface;  | 
