diff options
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r-- | sway/desktop/xdg_shell.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c index c84ca111..ea5dcd16 100644 --- a/sway/desktop/xdg_shell.c +++ b/sway/desktop/xdg_shell.c | |||
@@ -355,7 +355,7 @@ static void handle_request_move(struct wl_listener *listener, void *data) { | |||
355 | struct wlr_xdg_toplevel_move_event *e = data; | 355 | struct wlr_xdg_toplevel_move_event *e = data; |
356 | struct sway_seat *seat = e->seat->seat->data; | 356 | struct sway_seat *seat = e->seat->seat->data; |
357 | if (e->serial == seat->last_button_serial) { | 357 | if (e->serial == seat->last_button_serial) { |
358 | seatop_begin_move_floating(seat, view->container, seat->last_button); | 358 | seatop_begin_move_floating(seat, view->container); |
359 | } | 359 | } |
360 | } | 360 | } |
361 | 361 | ||
@@ -369,8 +369,7 @@ static void handle_request_resize(struct wl_listener *listener, void *data) { | |||
369 | struct wlr_xdg_toplevel_resize_event *e = data; | 369 | struct wlr_xdg_toplevel_resize_event *e = data; |
370 | struct sway_seat *seat = e->seat->seat->data; | 370 | struct sway_seat *seat = e->seat->seat->data; |
371 | if (e->serial == seat->last_button_serial) { | 371 | if (e->serial == seat->last_button_serial) { |
372 | seatop_begin_resize_floating(seat, view->container, | 372 | seatop_begin_resize_floating(seat, view->container, e->edges); |
373 | seat->last_button, e->edges); | ||
374 | } | 373 | } |
375 | } | 374 | } |
376 | 375 | ||