From d4cec8eb2adb7f865f5837a4a6a03d20ba0599ac Mon Sep 17 00:00:00 2001 From: BearOso Date: Mon, 31 Jan 2022 16:56:17 -0600 Subject: [PATCH] Gtk: Wayland: Use older wayland API for compatibility. --- gtk/src/wayland-idle-inhibit-unstable-v1.c | 2 +- gtk/src/wayland-idle-inhibit-unstable-v1.h | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/gtk/src/wayland-idle-inhibit-unstable-v1.c b/gtk/src/wayland-idle-inhibit-unstable-v1.c index 251a915b..79ded951 100644 --- a/gtk/src/wayland-idle-inhibit-unstable-v1.c +++ b/gtk/src/wayland-idle-inhibit-unstable-v1.c @@ -1,4 +1,4 @@ -/* Generated by wayland-scanner 1.20.0 */ +/* Generated by wayland-scanner 1.19.0 */ /* * Copyright © 2015 Samsung Electronics Co., Ltd diff --git a/gtk/src/wayland-idle-inhibit-unstable-v1.h b/gtk/src/wayland-idle-inhibit-unstable-v1.h index 1a8de3be..7f40411f 100644 --- a/gtk/src/wayland-idle-inhibit-unstable-v1.h +++ b/gtk/src/wayland-idle-inhibit-unstable-v1.h @@ -1,4 +1,4 @@ -/* Generated by wayland-scanner 1.20.0 */ +/* Generated by wayland-scanner 1.19.0 */ #ifndef IDLE_INHIBIT_UNSTABLE_V1_CLIENT_PROTOCOL_H #define IDLE_INHIBIT_UNSTABLE_V1_CLIENT_PROTOCOL_H @@ -165,8 +165,10 @@ zwp_idle_inhibit_manager_v1_get_version(struct zwp_idle_inhibit_manager_v1 *zwp_ static inline void zwp_idle_inhibit_manager_v1_destroy(struct zwp_idle_inhibit_manager_v1 *zwp_idle_inhibit_manager_v1) { - wl_proxy_marshal_flags((struct wl_proxy *) zwp_idle_inhibit_manager_v1, - ZWP_IDLE_INHIBIT_MANAGER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_idle_inhibit_manager_v1), WL_MARSHAL_FLAG_DESTROY); + wl_proxy_marshal((struct wl_proxy *) zwp_idle_inhibit_manager_v1, + ZWP_IDLE_INHIBIT_MANAGER_V1_DESTROY); + + wl_proxy_destroy((struct wl_proxy *) zwp_idle_inhibit_manager_v1); } /** @@ -179,8 +181,8 @@ zwp_idle_inhibit_manager_v1_create_inhibitor(struct zwp_idle_inhibit_manager_v1 { struct wl_proxy *id; - id = wl_proxy_marshal_flags((struct wl_proxy *) zwp_idle_inhibit_manager_v1, - ZWP_IDLE_INHIBIT_MANAGER_V1_CREATE_INHIBITOR, &zwp_idle_inhibitor_v1_interface, wl_proxy_get_version((struct wl_proxy *) zwp_idle_inhibit_manager_v1), 0, NULL, surface); + id = wl_proxy_marshal_constructor((struct wl_proxy *) zwp_idle_inhibit_manager_v1, + ZWP_IDLE_INHIBIT_MANAGER_V1_CREATE_INHIBITOR, &zwp_idle_inhibitor_v1_interface, NULL, surface); return (struct zwp_idle_inhibitor_v1 *) id; } @@ -221,8 +223,10 @@ zwp_idle_inhibitor_v1_get_version(struct zwp_idle_inhibitor_v1 *zwp_idle_inhibit static inline void zwp_idle_inhibitor_v1_destroy(struct zwp_idle_inhibitor_v1 *zwp_idle_inhibitor_v1) { - wl_proxy_marshal_flags((struct wl_proxy *) zwp_idle_inhibitor_v1, - ZWP_IDLE_INHIBITOR_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_idle_inhibitor_v1), WL_MARSHAL_FLAG_DESTROY); + wl_proxy_marshal((struct wl_proxy *) zwp_idle_inhibitor_v1, + ZWP_IDLE_INHIBITOR_V1_DESTROY); + + wl_proxy_destroy((struct wl_proxy *) zwp_idle_inhibitor_v1); } #ifdef __cplusplus