summaryrefslogtreecommitdiffstats
path: root/dwl.c
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2025-02-22 12:21:30 -0600
committerSquibid <me@zacharyscheiman.com>2025-02-22 12:21:30 -0600
commitf5638eff2c7c23fd3bb7752ad2617f0a423858dd (patch)
tree3bf1f33271c8623049961fb2ce8f246a3a99a776 /dwl.c
parent9f25812dc5c27ac140845f65fa20dcbd7504e5c7 (diff)
downloaddwl-f5638eff2c7c23fd3bb7752ad2617f0a423858dd.tar.gz
dwl-f5638eff2c7c23fd3bb7752ad2617f0a423858dd.tar.bz2
dwl-f5638eff2c7c23fd3bb7752ad2617f0a423858dd.zip
add motionnotify after warpcursor
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 48e421c..f83cb83 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1979,6 +1979,7 @@ focusmon(const Arg *arg)
wlr_cursor_warp_closest(cursor, NULL, c->geom.x + c->geom.width / 2.0,
c->geom.y + c->geom.height / 2.0);
}
+ motionnotify(0, NULL, 0, 0, 0, 0);
}
}
@@ -2010,6 +2011,7 @@ focusstack(const Arg *arg)
if (warpcursor) {
wlr_cursor_warp_closest( cursor, NULL, c->geom.x + c->geom.width / 2.0,
c->geom.y + c->geom.height / 2.0);
+ motionnotify(0, NULL, 0, 0, 0, 0);
}
}
@@ -2210,6 +2212,7 @@ incnmaster(const Arg *arg)
if (c) {
wlr_cursor_warp_closest(cursor, NULL, c->geom.x + c->geom.width / 2.0,
c->geom.y + c->geom.height / 2.0);
+ motionnotify(0, NULL, 0, 0, 0, 0);
}
}
}
@@ -3141,6 +3144,7 @@ setmfact(const Arg *arg)
if (c) {
wlr_cursor_warp_closest(cursor, NULL, c->geom.x + c->geom.width / 2.0,
c->geom.y + c->geom.height / 2.0);
+ motionnotify(0, NULL, 0, 0, 0, 0);
}
}
}