1
0
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:
Brad Jorsch
2010-04-26 13:56:37 -04:00
committed by Carlos R. Mafra
parent 12d16d92e7
commit 4ddc2a5a0a

View File

@@ -2525,6 +2525,7 @@ 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
*/ */
if (wPreferences.resize_increment > 0) {
wHackedGrabButton(Button4, ControlMask, wwin->client_win, wHackedGrabButton(Button4, ControlMask, wwin->client_win,
True, ButtonPressMask | ButtonReleaseMask, True, ButtonPressMask | ButtonReleaseMask,
GrabModeSync, GrabModeAsync, None, None); GrabModeSync, GrabModeAsync, None, None);
@@ -2539,6 +2540,7 @@ void wWindowResetMouseGrabs(WWindow * wwin)
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)
&& !wwin->flags.is_gnustep) { && !wwin->flags.is_gnustep) {