i3 / i3

A tiling window manager for X11
https://i3wm.org/
BSD 3-Clause "New" or "Revised" License
9.5k stars 780 forks source link

Use the middle mouse button as an alternative to the right mouse button when resizing. #3791

Closed bencollerson closed 1 year ago

bencollerson commented 5 years ago

I'm submitting a…

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

Current Behavior

Mod+right-mouse button click resizes windows

Desired Behavior

I use xinput to remap my middle and right click mouse buttons because I find having selection paste on a proper button more useful that clicking my scroll wheel. To allow i3 resizing to work with this I wrote a patch to make the middle mouse button have the same behaviour as the right mouse button:

https://github.com/bencollerson/i3/commit/2d6e963e0c05d4bed2360191133608b2b349ec3c

This addressed my issue, but might be better solved by allowing mouse button behaviour to be configurable.

Environment

Output of i3 --moreversion 2>&-:

i3 version: 

$ i3 --moreversion 2>&-
Binary i3 version:  4.16.1 (2019-01-27) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.16.1 (2019-01-27) (pid 16879)bort…)
Loaded i3 config: /home/benc/.config/i3/config (Last modified: Sat 07 Sep 2019 16:10:19 AEST, 5726 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3

- Linux Distribution & Version:
Debian buster and debian sid.

- Are you using a compositor (e.g., xcompmgr or compton):
no
bencollerson commented 5 years ago

I have run the test suite over my patch and it passed. Just checking if I can submit a pull request, or if I should make some more changes before doing doing so.