mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 01:41:30 +00:00
wl-shell: dimensions to size
This commit is contained in:
parent
823f6ee122
commit
6a694853e5
|
@ -28,7 +28,7 @@ static const char *get_prop(struct sway_view *view, enum sway_view_prop prop) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void set_dimensions(struct sway_view *view, int width, int height) {
|
static void set_size(struct sway_view *view, int width, int height) {
|
||||||
if (!assert_wl_shell(view)) {
|
if (!assert_wl_shell(view)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) {
|
||||||
}
|
}
|
||||||
sway_view->type = SWAY_WL_SHELL_VIEW;
|
sway_view->type = SWAY_WL_SHELL_VIEW;
|
||||||
sway_view->iface.get_prop = get_prop;
|
sway_view->iface.get_prop = get_prop;
|
||||||
sway_view->iface.set_dimensions = set_dimensions;
|
sway_view->iface.set_size = set_size;
|
||||||
sway_view->wlr_wl_shell_surface = shell_surface;
|
sway_view->wlr_wl_shell_surface = shell_surface;
|
||||||
sway_view->sway_wl_shell_surface = sway_surface;
|
sway_view->sway_wl_shell_surface = sway_surface;
|
||||||
sway_view->surface = shell_surface->surface;
|
sway_view->surface = shell_surface->surface;
|
||||||
|
|
Loading…
Reference in a new issue