mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Don't grab Ctrl+Wheel if ResizeIncrement is 0
I personally cannot stand stealing Ctrl+Wheel for resizing windows, so I turned it off. But wmaker is still preventing Ctrl+Wheel from reaching apps, which is certainly not the behavior I desire.
This commit is contained in:
committed by
Carlos R. Mafra
parent
12d16d92e7
commit
4ddc2a5a0a
26
src/window.c
26
src/window.c
@@ -2525,19 +2525,21 @@ void wWindowResetMouseGrabs(WWindow * wwin)
|
|||||||
* but we only grab it for Button4 and Button 5 since a lot of apps
|
* but we only grab it for Button4 and Button 5 since a lot of apps
|
||||||
* use CTRL+Button1-3 for app related functionality
|
* use CTRL+Button1-3 for app related functionality
|
||||||
*/
|
*/
|
||||||
wHackedGrabButton(Button4, ControlMask, wwin->client_win,
|
if (wPreferences.resize_increment > 0) {
|
||||||
True, ButtonPressMask | ButtonReleaseMask,
|
wHackedGrabButton(Button4, ControlMask, wwin->client_win,
|
||||||
GrabModeSync, GrabModeAsync, None, None);
|
True, ButtonPressMask | ButtonReleaseMask,
|
||||||
wHackedGrabButton(Button5, ControlMask, wwin->client_win,
|
GrabModeSync, GrabModeAsync, None, None);
|
||||||
True, ButtonPressMask | ButtonReleaseMask,
|
wHackedGrabButton(Button5, ControlMask, wwin->client_win,
|
||||||
GrabModeSync, GrabModeAsync, None, None);
|
True, ButtonPressMask | ButtonReleaseMask,
|
||||||
|
GrabModeSync, GrabModeAsync, None, None);
|
||||||
|
|
||||||
wHackedGrabButton(Button4, MOD_MASK | ControlMask, wwin->client_win,
|
wHackedGrabButton(Button4, MOD_MASK | ControlMask, wwin->client_win,
|
||||||
True, ButtonPressMask | ButtonReleaseMask,
|
True, ButtonPressMask | ButtonReleaseMask,
|
||||||
GrabModeSync, GrabModeAsync, None, None);
|
GrabModeSync, GrabModeAsync, None, None);
|
||||||
wHackedGrabButton(Button5, MOD_MASK | ControlMask, wwin->client_win,
|
wHackedGrabButton(Button5, MOD_MASK | ControlMask, wwin->client_win,
|
||||||
True, ButtonPressMask | ButtonReleaseMask,
|
True, ButtonPressMask | ButtonReleaseMask,
|
||||||
GrabModeSync, GrabModeAsync, None, None);
|
GrabModeSync, GrabModeAsync, None, None);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!wwin->flags.focused && !WFLAGP(wwin, no_focusable)
|
if (!wwin->flags.focused && !WFLAGP(wwin, no_focusable)
|
||||||
|
|||||||
Reference in New Issue
Block a user