aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhwsmm <9151706+hwsmm@users.noreply.github.com>2025-06-16 00:41:44 +0900
committerKenny Levinsen <kl@kl.wtf>2025-06-16 11:26:26 +0200
commit25ea1a0af287018da1dbb34fe92e6c8ea3b8a88d (patch)
tree7d2b261e2c1f2fd33082fdb3d22d1ac5b278fbf9
parent4b15b3427fd0835247d0a2e188c00f1d2aa04484 (diff)
seatop_default: Call seatop_rebase with proper timestamp
-rw-r--r--sway/input/seatop_default.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c
index a2e99d2b..19645b4c 100644
--- a/sway/input/seatop_default.c
+++ b/sway/input/seatop_default.c
@@ -16,6 +16,7 @@
#include "sway/tree/view.h"
#include "sway/tree/workspace.h"
#include "log.h"
+#include "util.h"
#if WLR_HAS_XWAYLAND
#include "sway/xwayland.h"
#endif
@@ -1148,5 +1149,7 @@ void seatop_begin_default(struct sway_seat *seat) {
seat->seatop_impl = &seatop_impl;
seat->seatop_data = e;
- seatop_rebase(seat, 0);
+
+ uint32_t time_msec = get_current_time_in_msec();
+ seatop_rebase(seat, time_msec);
}