Index: third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h |
diff --git a/third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h b/third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h |
index 370b5cbd93cbb078943f2790b077b121c57213ed..a4a5f8a779676a4df5a074d9cbe167996ecea652 100644 |
--- a/third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h |
+++ b/third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h |
@@ -553,6 +553,8 @@ zwp_remote_surface_v1_add_listener(struct zwp_remote_surface_v1 *zwp_remote_surf |
#define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY 16 |
#define ZWP_REMOTE_SURFACE_V1_ACTIVATE 17 |
#define ZWP_REMOTE_SURFACE_V1_PIN_WITH_TRUSTED_FLAG 18 |
+#define ZWP_REMOTE_SURFACE_V1_DRAG 19 |
+#define ZWP_REMOTE_SURFACE_V1_DROP 20 |
/** |
* @ingroup iface_zwp_remote_surface_v1 |
@@ -630,6 +632,14 @@ zwp_remote_surface_v1_add_listener(struct zwp_remote_surface_v1 *zwp_remote_surf |
* @ingroup iface_zwp_remote_surface_v1 |
*/ |
#define ZWP_REMOTE_SURFACE_V1_PIN_WITH_TRUSTED_FLAG_SINCE_VERSION 11 |
+/** |
+ * @ingroup iface_zwp_remote_surface_v1 |
+ */ |
+#define ZWP_REMOTE_SURFACE_V1_DRAG_SINCE_VERSION 12 |
+/** |
+ * @ingroup iface_zwp_remote_surface_v1 |
+ */ |
+#define ZWP_REMOTE_SURFACE_V1_DROP_SINCE_VERSION 12 |
/** @ingroup iface_zwp_remote_surface_v1 */ |
static inline void |
@@ -961,6 +971,34 @@ zwp_remote_surface_v1_pin_with_trusted_flag(struct zwp_remote_surface_v1 *zwp_re |
ZWP_REMOTE_SURFACE_V1_PIN_WITH_TRUSTED_FLAG, trusted); |
} |
+/** |
+ * @ingroup iface_zwp_remote_surface_v1 |
+ * |
+ * Notifies the compositor when a client-driven drag of the surface starts. |
+ * The compositor may assume that subsequent set_window_geometry requests |
+ * are position updates until it receives a "drop" request. |
+ */ |
+static inline void |
+zwp_remote_surface_v1_drag(struct zwp_remote_surface_v1 *zwp_remote_surface_v1) |
+{ |
+ wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, |
+ ZWP_REMOTE_SURFACE_V1_DRAG); |
+} |
+ |
+/** |
+ * @ingroup iface_zwp_remote_surface_v1 |
+ * |
+ * Notifies the compositor when a client-driven drag of the surface stops, |
+ * and whether it was reverted. The compositor may choose to stop the drag |
+ * regardless of this request. |
+ */ |
+static inline void |
+zwp_remote_surface_v1_drop(struct zwp_remote_surface_v1 *zwp_remote_surface_v1, uint32_t revert) |
+{ |
+ wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, |
+ ZWP_REMOTE_SURFACE_V1_DROP, revert); |
+} |
+ |
#define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0 |
/** |