mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-04 07:15:55 -04:00
fix: warpcursor not apply in some case
This commit is contained in:
parent
9b92f139c0
commit
241afb4b97
1 changed files with 1 additions and 2 deletions
|
|
@ -5989,8 +5989,7 @@ void virtualkeyboard(struct wl_listener *listener, void *data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void warp_cursor(const Client *c) {
|
void warp_cursor(const Client *c) {
|
||||||
if (cursor->x < c->geom.x || cursor->x > c->geom.x + c->geom.width ||
|
if (INSIDEMON(c)) {
|
||||||
cursor->y < c->geom.y || cursor->y > c->geom.y + c->geom.height) {
|
|
||||||
wlr_cursor_warp_closest(cursor, NULL, c->geom.x + c->geom.width / 2.0,
|
wlr_cursor_warp_closest(cursor, NULL, c->geom.x + c->geom.width / 2.0,
|
||||||
c->geom.y + c->geom.height / 2.0);
|
c->geom.y + c->geom.height / 2.0);
|
||||||
motionnotify(0, NULL, 0, 0, 0, 0);
|
motionnotify(0, NULL, 0, 0, 0, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue