Airblader / i3

A fork of the i3 window manager with gaps and some other features. :warning: i3-gaps has been merged into i3.
BSD 3-Clause "New" or "Revised" License
5.87k stars 318 forks source link

Targeted mouse warping #367

Closed raphaelreyna closed 4 years ago

raphaelreyna commented 4 years ago

I'm submitting a…

[ ] Bug
[x] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

When warping, the mouse currently warps right into the center of the window, this can be very distracting.

Desired Behavior

Users should be able to provide a desired target within the container for the mouse to warp to. Example config:

targeted_warping x_position 0
targeted_warping y_position 100

With this snippet in the config file, the mouse will warp to the bottom left corner of the container rather than to the center.

Environment

Output of i3 --moreversion 2>&-:

i3 version: 4.18.2-229-g234d6855+
- Linux Distribution & Version: Ubuntu 20.04
- Are you using a compositor (e.g., xcompmgr or compton): compton
raphaelreyna commented 4 years ago

I've already implemented this in my own fork: i3 - targeted warping.

The docs make it sound like new features should be brought up as an issue first before submitting the pull-request but it's ready to go should anyone want to review it; thanks.

Airblader commented 4 years ago

Thanks for the feature request. In i3-gaps I'm not currently looking to add more features, hence I'll be closing this.

The docs make it sound like new features should be brought up as an issue first

Indeed, but actually against upstream vanilla (i3/i3). You can bring it up upstream, but I don't think we'd be accepting this feature.