My configuration of sxmo fork of suckless dwm.

git clone git://watertao.xyz/programs/sxmo-dwm.git

commit ce7c14bb5c9f6396691972db7bca51718c58d322
parent 098c3b23ee82cf64559009a3a48eda88238a47ed
Author: Sergio Iglesias <sergiotarxz@posteo.net>
Date:   Sat, 25 Sep 2021 19:15:31 +0000

Making the touch keyboard to avoid getting screen focus.

Some keybindings were changed to better multimonitor integration.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>

Diffstat:
Mconfig.def.h | 6------
Mdwm.c | 3++-
2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -139,10 +139,6 @@ static Key keys[] = { /* monocle */ { 0, MODKEY, XK_m, setlayout, {.v = &layouts[3]} }, - /* deck double */ - { 0, MODKEY, XK_comma, setlayout, {.v = &layouts[4]} }, - /* deck */ - { 0, MODKEY, XK_period, setlayout, {.v = &layouts[5]} }, /* tile */ { 0, MODKEY, XK_slash, setlayout, {.v = &layouts[1]} }, /* bstack */ @@ -158,12 +154,10 @@ static Key keys[] = { { 0, MODKEY, XK_0, view, {.ui = ~0 } }, { 0, MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, - /* { 0, MODKEY, XK_comma, focusmon, {.i = -1 } }, { 0, MODKEY, XK_period, focusmon, {.i = +1 } }, { 0, MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { 0, MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - */ TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) diff --git a/dwm.c b/dwm.c @@ -623,7 +623,8 @@ buttonpress(XEvent *e) click = ClkRootWin; /* focus monitor if necessary */ - if ((m = wintomon(ev->window)) && m != selmon) { + if (!((c = wintoclient(ev->window)) && c->iskbd) + && (m = wintomon(ev->window)) && m != selmon) { unfocus(selmon->sel, 1); selmon = m; focus(NULL);