Compare commits

..

No commits in common. "a929abd5bc5d6a2311562be77dfc80c6dce00f34" and "7c3abae4e68b6a21f05cb04f3af31217259c0aa9" have entirely different histories.

4 changed files with 15 additions and 54 deletions

View file

@ -1,6 +1,5 @@
MIT/X Consortium License
© 2010-2026 Hiltjo Posthuma <hiltjo@codemadness.org>
© 2006-2019 Anselm R Garbe <anselm@garbe.ca>
© 2006-2009 Jukka Salmi <jukka at salmi dot ch>
© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com>
@ -12,6 +11,7 @@ MIT/X Consortium License
© 2008 Martin Hurton <martin dot hurton at gmail dot com>
© 2008 Neale Pickett <neale dot woozle dot org>
© 2009 Mate Nagy <mnagy at port70 dot net>
© 2010-2016 Hiltjo Posthuma <hiltjo@codemadness.org>
© 2010-2012 Connor Lane Smith <cls@lubutu.com>
© 2011 Christoph Lohmann <20h@r-36.net>
© 2015-2016 Quentin Rameau <quinq@fifth.space>

View file

@ -1,38 +0,0 @@
bldit_version = "1.1.3"
package_version = "1.1.3"
dependencies = {}
targets = {
default = {
build = function()
e,h,c = os.execute("rm config.h") -- I don't really like config.h personally i prefer config.def.h
if c ~= 0 and c ~= nil then
print("Clean Error")
print("GIVEN UP")
return c
end
e,h,c = os.execute("make clean")
if c ~= 0 and c ~= nil then
print("Clean Error")
print("GIVEN UP")
return c
end
e,h,c = os.execute("make")
if c ~= 0 and c ~= nil then
print("Build Error")
print("GIVEN UP")
return c
end
return 0
end,
install = function()
e,h,c = os.execute("make install PREFIX="..prefix)
return c or 0
end,
uninstall = function()
e,h,c = os.execute("make uninstall PREFIX="..prefix)
return c or 0
end,
}
}

View file

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

27
dwm.c
View file

@ -440,7 +440,7 @@ buttonpress(XEvent *e)
arg.ui = 1 << i;
} else if (ev->x < x + TEXTW(selmon->ltsymbol))
click = ClkLtSymbol;
else if (ev->x > selmon->ww - (int)TEXTW(stext) + lrpad - 2)
else if (ev->x > selmon->ww - (int)TEXTW(stext))
click = ClkStatusText;
else
click = ClkWinTitle;
@ -863,15 +863,14 @@ focusstack(const Arg *arg)
Atom
getatomprop(Client *c, Atom prop)
{
int format;
unsigned long nitems, dl;
int di;
unsigned long dl;
unsigned char *p = NULL;
Atom da, atom = None;
if (XGetWindowProperty(dpy, c->win, prop, 0L, sizeof atom, False, XA_ATOM,
&da, &format, &nitems, &dl, &p) == Success && p) {
if (nitems > 0 && format == 32)
atom = *(long *)p;
&da, &di, &dl, &dl, &p) == Success && p) {
atom = *(Atom *)p;
XFree(p);
}
return atom;
@ -897,10 +896,10 @@ getstate(Window w)
Atom real;
if (XGetWindowProperty(dpy, w, wmatom[WMState], 0L, 2L, False, wmatom[WMState],
&real, &format, &n, &extra, &p) != Success)
&real, &format, &n, &extra, (unsigned char **)&p) != Success)
return -1;
if (n != 0 && format == 32)
result = *(long *)p;
if (n != 0)
result = *p;
XFree(p);
return result;
}
@ -1429,8 +1428,6 @@ sendmon(Client *c, Monitor *m)
c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
attach(c);
attachstack(c);
if (c->isfullscreen)
resizeclient(c, m->mx, m->my, m->mw, m->mh);
focus(NULL);
arrange(NULL);
}
@ -1472,10 +1469,12 @@ sendevent(Client *c, Atom proto)
void
setfocus(Client *c)
{
if (!c->neverfocus)
if (!c->neverfocus) {
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32,
PropModeReplace, (unsigned char *)&c->win, 1);
XChangeProperty(dpy, root, netatom[NetActiveWindow],
XA_WINDOW, 32, PropModeReplace,
(unsigned char *) &(c->win), 1);
}
sendevent(c, wmatom[WMTakeFocus]);
}