summaryrefslogtreecommitdiffstats
path: root/sway/desktop/wl_shell.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-03 14:23:23 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-03 14:23:23 -0500
commit6a694853e5b65ab44b1b83572cc0f1c0ad8da960 (patch)
tree6e022ef1b7192fb6910c97429b32f80494d96bbc /sway/desktop/wl_shell.c
parentMerge branch 'wlroots' into feature/wl-shell (diff)
downloadsway-6a694853e5b65ab44b1b83572cc0f1c0ad8da960.tar.gz
sway-6a694853e5b65ab44b1b83572cc0f1c0ad8da960.tar.zst
sway-6a694853e5b65ab44b1b83572cc0f1c0ad8da960.zip
wl-shell: dimensions to size
Diffstat (limited to 'sway/desktop/wl_shell.c')
-rw-r--r--sway/desktop/wl_shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/wl_shell.c b/sway/desktop/wl_shell.c
index 3a349425..e7b42fce 100644
--- a/sway/desktop/wl_shell.c
+++ b/sway/desktop/wl_shell.c
@@ -28,7 +28,7 @@ static const char *get_prop(struct sway_view *view, enum sway_view_prop prop) {
28 } 28 }
29} 29}
30 30
31static void set_dimensions(struct sway_view *view, int width, int height) { 31static void set_size(struct sway_view *view, int width, int height) {
32 if (!assert_wl_shell(view)) { 32 if (!assert_wl_shell(view)) {
33 return; 33 return;
34 } 34 }
@@ -86,7 +86,7 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) {
86 } 86 }
87 sway_view->type = SWAY_WL_SHELL_VIEW; 87 sway_view->type = SWAY_WL_SHELL_VIEW;
88 sway_view->iface.get_prop = get_prop; 88 sway_view->iface.get_prop = get_prop;
89 sway_view->iface.set_dimensions = set_dimensions; 89 sway_view->iface.set_size = set_size;
90 sway_view->wlr_wl_shell_surface = shell_surface; 90 sway_view->wlr_wl_shell_surface = shell_surface;
91 sway_view->sway_wl_shell_surface = sway_surface; 91 sway_view->sway_wl_shell_surface = sway_surface;
92 sway_view->surface = shell_surface->surface; 92 sway_view->surface = shell_surface->surface;