placemouse: adding options for tiled position being relative to client center

This commit is contained in:
bakkeby
2021-01-23 16:58:44 +01:00
parent 0f28402305
commit b4758c388d
3 changed files with 154 additions and 1 deletions

View File

@@ -1161,7 +1161,12 @@ static Button buttons[] = {
#endif // BAR_STATUSCMD_PATCH
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
#if PLACEMOUSE_PATCH
{ ClkClientWin, MODKEY|ControlMask, Button1, placemouse, {0} },
/* placemouse options, choose which feels more natural:
* 0 - tiled position is relative to mouse cursor
* 1 - tiled postiion is relative to window center
* 2 - mouse pointer warps to window center
*/
{ ClkClientWin, MODKEY|ControlMask, Button1, placemouse, {.i = 1} },
#endif // PLACEMOUSE_PATCH
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },