aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-07-09 11:47:50 +0200
committerSimon Ser <contact@emersion.fr>2023-07-09 11:48:16 +0200
commit19ba3f0c2ae7ca5f79b714020922716fc2c3b3ae (patch)
treeae87107f8d9d723998162cf0c31a5e46ce8134c5
parent972c5f0c11738a9686f566ffc1ae3b2b96c28abd (diff)
xwayland: drop struct wlr_xwayland_move_event
This only contains the xsurface, which isn't particularly useful.
-rw-r--r--include/wlr/xwayland/xwayland.h5
-rw-r--r--xwayland/xwm.c4
2 files changed, 1 insertions, 8 deletions
diff --git a/include/wlr/xwayland/xwayland.h b/include/wlr/xwayland/xwayland.h
index 0f7d232a..7c57fdca 100644
--- a/include/wlr/xwayland/xwayland.h
+++ b/include/wlr/xwayland/xwayland.h
@@ -177,11 +177,6 @@ struct wlr_xwayland_surface_configure_event {
uint16_t mask; // xcb_config_window_t
};
-// TODO: maybe add a seat to these
-struct wlr_xwayland_move_event {
- struct wlr_xwayland_surface *surface;
-};
-
struct wlr_xwayland_remove_startup_info_event {
const char *id;
xcb_window_t window;
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index a6d249e7..a8f2eb2d 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -1243,13 +1243,11 @@ static void xwm_handle_net_wm_moveresize_message(struct wlr_xwm *xwm,
// TODO: we should probably add input or seat info to this but we would just
// be guessing
struct wlr_xwayland_resize_event resize_event;
- struct wlr_xwayland_move_event move_event;
int detail = ev->data.data32[2];
switch (detail) {
case _NET_WM_MOVERESIZE_MOVE:
- move_event.surface = xsurface;
- wl_signal_emit_mutable(&xsurface->events.request_move, &move_event);
+ wl_signal_emit_mutable(&xsurface->events.request_move, NULL);
break;
case _NET_WM_MOVERESIZE_SIZE_TOPLEFT:
case _NET_WM_MOVERESIZE_SIZE_TOP: