-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: option to move cursor to the center of window when focus changes #2577
Comments
afaik |
Right, currently it looks like the following:
But I propose to extend it:
|
Has this been pitched to i3? |
Nope. |
Sure, seems like it'd be useful for both projects. |
Ok, I will do that. Thank you for feedback :) |
Most likely it wouldn't be supported in i3, see this issue for relevant information. But situation might be better under Wayland. What do you think about that? |
Sure, sounds good. Let's do it. |
I'd be interested in doing this feature as my first contribution. I found the code responsible for warping the cursor on a change to a new workspace here, and I believe the only change needed would be to remove
|
Yep.
Yes, but you'll also need to change the |
This option always moves the cursor into the middle of the container if the warp variable is true in seat_focus_set_focus_warp. Fixes swaywm#2577
This option always moves the cursor into the middle of the container if the warp variable is true in seat_set_focus_warp. Fixes swaywm#2577
This option always moves the cursor into the middle of the container if the warp variable is true in seat_set_focus_warp. Fixes swaywm#2577
This option always moves the cursor into the middle of the container if the warp variable is true in seat_set_focus_warp. Fixes swaywm#2577
This option always moves the cursor into the middle of the container if the warp variable is true in seat_set_focus_warp. Fixes swaywm#2577
This option always moves the cursor into the middle of the container if the warp variable is true in seat_set_focus_warp. Fixes swaywm#2577
This option always moves the cursor into the middle of the container if the warp variable is true in seat_set_focus_warp. Fixes swaywm#2577
This option always moves the cursor into the middle of the container if the warp variable is true in seat_set_focus_warp. Fixes swaywm#2577
I've had such behavior in xmonad and was very happy with it:
Unfortunately, Sway don't allows something like that.
As far as I see,
i3
allows it, but only when output changes: this option is calledmouse_warping
.There's also a blog post that describes how to script
i3
to do it. But that requires xdotool, which can't move cursor under Wayland.Anyway, it seems to be a missing
focus
value formouse_warping
option.Would you consider to implement it?
The text was updated successfully, but these errors were encountered: