aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/wm/config.h
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-10-04 11:33:07 -0700
committerNicholas Noll <nbnoll@eml.cc>2021-10-04 11:33:07 -0700
commit93e9672953d849288f27ff3d977cc1c1ff111da8 (patch)
tree64c431f8bf6d4e842da6bcd76a259434045197e0 /sys/cmd/wm/config.h
parent8f224149f176fb8de90a82b44f4dd1c6a1b89a4f (diff)
feat(wm): keyboard focus corrected
Diffstat (limited to 'sys/cmd/wm/config.h')
-rw-r--r--sys/cmd/wm/config.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/cmd/wm/config.h b/sys/cmd/wm/config.h
index 517c78d..d44b45f 100644
--- a/sys/cmd/wm/config.h
+++ b/sys/cmd/wm/config.h
@@ -43,8 +43,8 @@ CONFIG(MonitorRule, monitorrule[], {
CONFIG(MonitorRule*, endmonitorrule, arrend(cfg·monitorrule));
/* keybindings */
-#define MOD(a) WLR_MODIFIER_##a
#define MODKEY WLR_MODIFIER_ALT
+#define MOD(a) WLR_MODIFIER_##a
#define KEY(a) XKB_KEY_##a
CONFIG(Key, binding[], {
@@ -55,5 +55,14 @@ CONFIG(Key, binding[], {
CONFIG(Key*, endbinding, arrend(cfg·binding));
#undef MOD
-#undef MODKEY
#undef KEY
+
+/* mouse buttons */
+CONFIG(Button, button[], {
+ { MODKEY, BTN_LEFT, move_client, {.ui = CursorMove} },
+ { MODKEY, BTN_MIDDLE, float_client, {0} },
+ { MODKEY, BTN_RIGHT, resize_client, {.ui = CursorResize} },
+});
+CONFIG(Button*, endbutton, arrend(cfg·button));
+
+#undef MODKEY