aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/wl_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/wl_shell.c')
-rw-r--r--sway/desktop/wl_shell.c5
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) {
45 view->swayc->y = oy; 45 view->swayc->y = oy;
46} 46}
47 47
48static void set_activated(struct sway_view *view, bool activated) {
49 // no way to activate wl_shell
50}
51
48static void handle_commit(struct wl_listener *listener, void *data) { 52static void handle_commit(struct wl_listener *listener, void *data) {
49 struct sway_wl_shell_surface *sway_surface = 53 struct sway_wl_shell_surface *sway_surface =
50 wl_container_of(listener, sway_surface, commit); 54 wl_container_of(listener, sway_surface, commit);
@@ -96,6 +100,7 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) {
96 sway_view->iface.get_prop = get_prop; 100 sway_view->iface.get_prop = get_prop;
97 sway_view->iface.set_size = set_size; 101 sway_view->iface.set_size = set_size;
98 sway_view->iface.set_position = set_position; 102 sway_view->iface.set_position = set_position;
103 sway_view->iface.set_activated = set_activated;
99 sway_view->wlr_wl_shell_surface = shell_surface; 104 sway_view->wlr_wl_shell_surface = shell_surface;
100 sway_view->sway_wl_shell_surface = sway_surface; 105 sway_view->sway_wl_shell_surface = sway_surface;
101 sway_view->surface = shell_surface->surface; 106 sway_view->surface = shell_surface->surface;