Skip to content
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

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

bencollerson opened this issue Sep 7, 2019 · 1 comment


Copy link

commented Sep 7, 2019

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:


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


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):

@i3bot i3bot added the enhancement label Sep 7, 2019


This comment has been minimized.

Copy link

commented Sep 7, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.