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

Feature request: Add configure option to use Mod4 (or whatever) instead of Mod1 for window moving and resizing #41

Open
af7567 opened this issue Sep 24, 2021 · 0 comments
Labels
enhancement The report requests an enhancement beyond the intended behaviour.

Comments

@af7567
Copy link

af7567 commented Sep 24, 2021

After a lot of Googling for how to use the Windows/Super key instead of Alt for moving windows around, I finally decided to check the source code and saw that Mod1 is hardcoded (at least I think it is):

blackboxwm/src/Window.cc

Lines 1862 to 1872 in 7d9bb9d

if (hasWindowFunction(WindowFunctionMove))
blackbox->grabButton(Button1, Mod1Mask, frame.window, True,
ButtonReleaseMask | ButtonMotionMask, GrabModeAsync,
GrabModeAsync, frame.window,
blackbox->resource().cursors().move,
blackbox->resource().allowScrollLock());
if (hasWindowFunction(WindowFunctionResize))
blackbox->grabButton(Button3, Mod1Mask, frame.window, True,
ButtonReleaseMask | ButtonMotionMask, GrabModeAsync,
GrabModeAsync, frame.window,
None, blackbox->resource().allowScrollLock());

It would be nice to be able to change that from some rc value like I have been able to in other window managers. I am also used to Win+middle button for resizing, so I guess being able to change the mouse button used in the above code using an rc file value would be good too :)

@af7567 af7567 closed this as completed Nov 1, 2021
@af7567 af7567 reopened this Nov 1, 2021
@bbidulock bbidulock added the enhancement The report requests an enhancement beyond the intended behaviour. label Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The report requests an enhancement beyond the intended behaviour.
Projects
None yet
Development

No branches or pull requests

2 participants