~proycon/sxmo-dwm

ce7c14bb5c9f6396691972db7bca51718c58d322 — Sergio Iglesias 1 year, 2 months ago 098c3b2 dev20211008 master
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>
2 files changed, 2 insertions(+), 7 deletions(-)

M config.def.h
M dwm.c
M config.def.h => config.def.h +0 -6
@@ 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)

M dwm.c => dwm.c +2 -1
@@ 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);