dwm

my customized branch of dwm
git clone git://git.jakekoroman.com/dwm
Log | Files | Refs | README | LICENSE

commit 7ae70f2d58cfc7f00526bde8c50cdaaa0a89ab02
parent 4ca959d9b9c103e9c2c018d98af3e944ad39a404
Author: Jake Koroman <jakekoroman@gmail.com>
Date:   Tue,  6 Aug 2024 11:39:59 -0400

pointer follows monitor change and formatting fixes.

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

diff --git a/config.def.h b/config.def.h @@ -15,11 +15,11 @@ static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; static const char col_cyan[] = "#005577"; static const char *colors[][3] = { - /* fg bg border */ - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, - [SchemeTabActive] = { col_gray2, col_gray3, col_gray2 }, - [SchemeTabInactive] = { col_gray1, col_gray3, col_gray1 } + /* fg bg border */ + [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, + [SchemeSel] = { col_gray4, col_cyan, col_cyan }, + [SchemeTabActive] = { col_gray2, col_gray3, col_gray2 }, + [SchemeTabInactive] = { col_gray1, col_gray3, col_gray1 } }; /* tagging */ diff --git a/dwm.c b/dwm.c @@ -1017,6 +1017,7 @@ focusmon(const Arg *arg) unfocus(selmon->sel, 0); selmon = m; focus(NULL); + XWarpPointer(dpy, None, root, 0, 0, 0, 0, selmon->mx + selmon->mw/2, selmon->my + selmon->mh/2); } void @@ -1872,6 +1873,7 @@ tagmon(const Arg *arg) if (!selmon->sel || !mons->next) return; sendmon(selmon->sel, dirtomon(arg->i)); + focusmon(arg); } void