diff options
| author | verschmelzen <[email protected]> | 2021-03-30 22:31:45 +0300 |
|---|---|---|
| committer | verschmelzen <[email protected]> | 2021-03-30 22:49:59 +0300 |
| commit | 07277cc460d73dd0c330257812180894f5c4c77e (patch) | |
| tree | c3f7ce72f7c86c2e21085d60a392e26c371502d0 /config.def.h | |
| parent | 4751d7388d3c7ecf1084747ae0b7da79691fc696 (diff) | |
| download | dwm-flexipatch-07277cc460d73dd0c330257812180894f5c4c77e.tar.gz dwm-flexipatch-07277cc460d73dd0c330257812180894f5c4c77e.zip | |
Add tapresize patch
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index ce368ee..85ad6e9 100644 --- a/config.def.h +++ b/config.def.h @@ -532,6 +532,19 @@ static const int decorhints = 1; /* 1 means respect decoration hints */ #define FORCE_VSPLIT 1 #endif +#if TAPRESIZE_PATCH +/* mouse scroll resize */ +static const int scrollsensetivity = 30; /* 1 means resize window by 1 pixel for each scroll event */ +/* resizemousescroll direction argument list */ +static const int scrollargs[][2] = { + /* width change height change */ + { +scrollsensetivity, 0 }, + { -scrollsensetivity, 0 }, + { 0, +scrollsensetivity }, + { 0, -scrollsensetivity }, +}; +#endif + #if FLEXTILE_DELUXE_LAYOUT static const Layout layouts[] = { /* symbol arrange function, { nmaster, nstack, layout, master axis, stack axis, secondary stack axis, symbol func } */ @@ -1207,6 +1220,12 @@ static Button buttons[] = { #endif // PLACEMOUSE_PATCH { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, + #if TAPRESIZE_PATCH + { ClkClientWin, MODKEY, Button4, resizemousescroll, {.v = &scrollargs[0]} }, + { ClkClientWin, MODKEY, Button5, resizemousescroll, {.v = &scrollargs[1]} }, + { ClkClientWin, MODKEY, Button6, resizemousescroll, {.v = &scrollargs[2]} }, + { ClkClientWin, MODKEY, Button7, resizemousescroll, {.v = &scrollargs[3]} }, + #endif // TAPRESIZE_PATCH #if DRAGCFACT_PATCH && CFACTS_PATCH { ClkClientWin, MODKEY|ShiftMask, Button3, dragcfact, {0} }, #endif // DRAGCFACT_PATCH |
