aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/xdg_shell.c5
-rw-r--r--sway/desktop/xdg_shell_v6.c5
-rw-r--r--sway/desktop/xwayland.c5
3 files changed, 6 insertions, 9 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
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index 3eed54ab..7ff4c4de 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -355,7 +355,7 @@ static void handle_request_move(struct wl_listener *listener, void *data) {
355 struct wlr_xdg_toplevel_v6_move_event *e = data; 355 struct wlr_xdg_toplevel_v6_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_v6_resize_event *e = data; 369 struct wlr_xdg_toplevel_v6_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
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index a2aa2e08..f5ade8dc 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -476,7 +476,7 @@ static void handle_request_move(struct wl_listener *listener, void *data) {
476 return; 476 return;
477 } 477 }
478 struct sway_seat *seat = input_manager_current_seat(); 478 struct sway_seat *seat = input_manager_current_seat();
479 seatop_begin_move_floating(seat, view->container, seat->last_button); 479 seatop_begin_move_floating(seat, view->container);
480} 480}
481 481
482static void handle_request_resize(struct wl_listener *listener, void *data) { 482static void handle_request_resize(struct wl_listener *listener, void *data) {
@@ -492,8 +492,7 @@ static void handle_request_resize(struct wl_listener *listener, void *data) {
492 } 492 }
493 struct wlr_xwayland_resize_event *e = data; 493 struct wlr_xwayland_resize_event *e = data;
494 struct sway_seat *seat = input_manager_current_seat(); 494 struct sway_seat *seat = input_manager_current_seat();
495 seatop_begin_resize_floating(seat, view->container, 495 seatop_begin_resize_floating(seat, view->container, e->edges);
496 seat->last_button, e->edges);
497} 496}
498 497
499static void handle_request_activate(struct wl_listener *listener, void *data) { 498static void handle_request_activate(struct wl_listener *listener, void *data) {