aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-05-06 18:03:30 +0000
committerSimon Ser <contact@emersion.fr>2022-08-03 11:50:13 +0000
commit2f68b421bfc444c2a713d7418850b67a7e34810f (patch)
tree06a85268a184254abaad5a7a6e9af2c4afea215e
parentserver: Use "normal" socket activation, not inetd (diff)
Add no-op xdg_toplevel.configure_bounds handler
Next commit uses v5.
-rw-r--r--wayland.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/wayland.c b/wayland.c
index 850b657b..2d7c303f 100644
--- a/wayland.c
+++ b/wayland.c
@@ -706,9 +706,18 @@ xdg_toplevel_close(void *data, struct xdg_toplevel *xdg_toplevel)
term_shutdown(term);
}
+static void
+xdg_toplevel_configure_bounds(void *data,
+ struct xdg_toplevel *xdg_toplevel,
+ int32_t width, int32_t height)
+{
+ /* TODO: ensure we don't pick a bigger size */
+}
+
static const struct xdg_toplevel_listener xdg_toplevel_listener = {
.configure = &xdg_toplevel_configure,
/*.close = */&xdg_toplevel_close, /* epoll-shim defines a macro ‘close’... */
+ .configure_bounds = &xdg_toplevel_configure_bounds,
};
static void
@@ -902,7 +911,7 @@ handle_global(void *data, struct wl_registry *registry,
*/
wayl->shell = wl_registry_bind(
- wayl->registry, name, &xdg_wm_base_interface, min(version, 2));
+ wayl->registry, name, &xdg_wm_base_interface, min(version, 4));
xdg_wm_base_add_listener(wayl->shell, &xdg_wm_base_listener, wayl);
}