update to dwm 6.3

This commit is contained in:
Alexander Bocken 2022-01-08 10:31:14 +01:00
parent 3e2a2695a8
commit 3a5cb824ff
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
5 changed files with 10 additions and 4 deletions

View File

@ -87,6 +87,7 @@ static const float mfact = 0.50; /* factor of master area size [0.05..0.95]
static const float firstwindowoffset = 0.05; /* render first window 5% larger than mfact would for firstwindowcentered layout */
static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
static const Layout layouts[] = {
/* symbol arrange function */

View File

@ -1,5 +1,5 @@
# dwm version
VERSION = 6.2
VERSION = 6.3
# Customize below to fit your system

2
drw.c
View File

@ -96,6 +96,7 @@ drw_free(Drw *drw)
XFreePixmap(drw->dpy, drw->drawable);
XFreeGC(drw->dpy, drw->gc);
drw_fontset_free(drw->fonts);
drw_fontset_free(drw->fonts);
free(drw);
}
@ -434,3 +435,4 @@ drw_cur_free(Drw *drw, Cur *cursor)
XFreeCursor(drw->dpy, cursor->cursor);
free(cursor);
}

2
dwm.1
View File

@ -33,7 +33,7 @@ dwm draws a small border around windows to indicate the focus state.
.SH OPTIONS
.TP
.B \-v
prints version information to standard output, then exits.
prints version information to stderr, then exits.
.SH USAGE
.SS Status bar
.TP

7
dwm.c
View File

@ -474,7 +474,7 @@ buttonpress(XEvent *e)
arg.ui = 1 << i;
} else if (ev->x < x + blw)
click = ClkLtSymbol;
else if (ev->x > selmon->ww - TEXTW(stext))
else if (ev->x > selmon->ww - (int)TEXTW(stext))
click = ClkStatusText;
else
click = ClkWinTitle;
@ -774,6 +774,9 @@ drawbar(Monitor *m)
unsigned int i, occ = 0, urg = 0;
Client *c;
if (!m->showbar)
return;
/* draw status first so it can be overdrawn by tags later */
/* removed conditional here to only draw on selected monitor, now draws on all */
drw_setscheme(drw, scheme[SchemeNorm]);
@ -918,7 +921,7 @@ focusstack(const Arg *arg)
{
Client *c = NULL, *i;
if (!selmon->sel)
if (!selmon->sel || (selmon->sel->isfullscreen && lockfullscreen))
return;
if (arg->i > 0) {
for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next);