From 93e9672953d849288f27ff3d977cc1c1ff111da8 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Mon, 4 Oct 2021 11:33:07 -0700 Subject: feat(wm): keyboard focus corrected --- sys/cmd/wm/config.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'sys/cmd/wm/config.h') 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 -- cgit v1.2.1