diff --git a/config.h b/config.h index 3dd3e8b..7ee4b22 100644 --- a/config.h +++ b/config.h @@ -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 */ diff --git a/config.mk b/config.mk index 7084c33..b6eb7e0 100644 --- a/config.mk +++ b/config.mk @@ -1,5 +1,5 @@ # dwm version -VERSION = 6.2 +VERSION = 6.3 # Customize below to fit your system diff --git a/drw.c b/drw.c index 4cdbcbe..4cbeed5 100644 --- a/drw.c +++ b/drw.c @@ -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); } + diff --git a/dwm.1 b/dwm.1 index 13b3729..ddc8321 100644 --- a/dwm.1 +++ b/dwm.1 @@ -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 diff --git a/dwm.c b/dwm.c index 7f3b33e..b3f7928 100644 --- a/dwm.c +++ b/dwm.c @@ -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);