From 009b84cbdc0495807c054564d45c66bda601dd3f Mon Sep 17 00:00:00 2001 From: bakkeby Date: Tue, 16 Feb 2021 09:43:44 +0100 Subject: placemouse: upgrade to include moveorplace function --- config.def.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 58e6b1a..ecd9036 100644 --- a/config.def.h +++ b/config.def.h @@ -1171,14 +1171,20 @@ static Button buttons[] = { #else { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, #endif // BAR_STATUSCMD_PATCH - { ClkClientWin, MODKEY, Button1, movemouse, {0} }, #if PLACEMOUSE_PATCH /* 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 + * + * The moveorplace uses movemouse or placemouse depending on the floating state + * of the selected client. Set up individual keybindings for the two if you want + * to control these separately (i.e. to retain the feature to move a tiled window + * into a floating position). */ - { ClkClientWin, MODKEY|ControlMask, Button1, placemouse, {.i = 1} }, + { ClkClientWin, MODKEY, Button1, moveorplace, {.i = 1} }, + #else + { ClkClientWin, MODKEY, Button1, movemouse, {0} }, #endif // PLACEMOUSE_PATCH { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, -- cgit v1.2.3