diff options
| author | Craig Jennings <craigmartinjennings@gmail.com> | 2021-09-19 13:52:53 -0500 |
|---|---|---|
| committer | Craig Jennings <craigmartinjennings@gmail.com> | 2021-09-19 13:52:53 -0500 |
| commit | 7de7baf7f412f36ab1608c2a71d64fe2e656e452 (patch) | |
| tree | bb7f5bc525d98581fbd1d59e6785c5314147efcf /config.def.h | |
| parent | fc03ea48d9938d9dab30ec49a7e7dbe5b943e612 (diff) | |
Fix mouse and floating issues
- Mod click + move
toggles to floating and positions the window
- Mod right-click (button 3)
toggles back to tiled
- Mod + Shift + Click
mouse jumps to bottom right and allows resizing floating window
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/config.def.h b/config.def.h index 3dadc5c..44408b9 100644 --- a/config.def.h +++ b/config.def.h @@ -175,17 +175,17 @@ static Key keys[] = { /* button definitions */ /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ static Button buttons[] = { - /* click event mask button function argument */ - { ClkLtSymbol, 0, Button1, setlayout, {0} }, - { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, - { ClkWinTitle, 0, Button2, zoom, {0} }, - { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, - { ClkClientWin, MODKEY, Button1, movemouse, {0} }, - { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, - { ClkClientWin, MODKEY, Button1, resizemouse, {0} }, - { ClkTagBar, 0, Button1, view, {0} }, - { ClkTagBar, 0, Button3, toggleview, {0} }, - { ClkTagBar, MODKEY, Button1, tag, {0} }, - { ClkTagBar, MODKEY, Button3, toggletag, {0} }, + /* click event mask button function argument */ + { ClkLtSymbol, 0, Button1, setlayout, {0} }, + { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, + { ClkWinTitle, 0, Button2, zoom, {0} }, + { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, + { ClkClientWin, MODKEY, Button1, movemouse, {0} }, + { ClkClientWin, MODKEY, Button3, togglefloating, {0} }, + { ClkClientWin, MODKEY|ShiftMask, Button1, resizemouse, {0} }, + { ClkTagBar, 0, Button1, view, {0} }, + { ClkTagBar, 0, Button3, toggleview, {0} }, + { ClkTagBar, MODKEY, Button1, tag, {0} }, + { ClkTagBar, MODKEY, Button3, toggletag, {0} }, }; |
