mirror of https://github.com/0intro/wmii
Fix MWM hint regression. Closes issue #167.
This commit is contained in:
parent
fc5341aaf7
commit
e66b83eab2
|
@ -750,8 +750,8 @@ updatemwm(Client *c) {
|
|||
}
|
||||
free(ret);
|
||||
|
||||
if(c->sel) {
|
||||
c->sel->floatr = c->r;
|
||||
if(c->sel && false) {
|
||||
c->sel->floatr = client_grav(c, r);
|
||||
if(c->sel->area->floating) {
|
||||
client_resize(c, c->sel->floatr);
|
||||
frame_draw(c->sel);
|
||||
|
|
|
@ -72,7 +72,7 @@ drawimg(Image *img, Color cbg, Color cborder, Divide *d) {
|
|||
|
||||
w = Dx(img->r)/2;
|
||||
n = 0;
|
||||
pt[n++] = Pt(w , 0);
|
||||
pt[n++] = Pt(w, 0);
|
||||
pt[n++] = Pt(0, 0);
|
||||
pt[n++] = Pt(w - 1, w - 1);
|
||||
|
||||
|
|
|
@ -283,10 +283,8 @@ frame_gethints(Frame *f) {
|
|||
h.min.x += d.x;
|
||||
h.min.y += d.y;
|
||||
/* Guard against overflow. */
|
||||
if(h.max.x + d.x > h.max.x)
|
||||
h.max.x += d.x;
|
||||
if(h.max.y + d.y > h.max.y)
|
||||
h.max.y += d.y;
|
||||
h.max.x = max(h.max.x + d.x, h.max.x);
|
||||
h.max.y = max(h.max.y + d.y, h.max.y);
|
||||
|
||||
h.base.x += d.x;
|
||||
h.base.y += d.y;
|
||||
|
|
13
config.mk
13
config.mk
|
@ -19,6 +19,7 @@ TERMINAL = xterm
|
|||
include $(ROOT)/mk/gcc.mk
|
||||
CFLAGS += $(DEBUGCFLAGS) -O0
|
||||
LDFLAGS += -g
|
||||
|
||||
SOLDFLAGS += $(LDFLAGS)
|
||||
SHARED = -shared -Wl,-soname=$(SONAME)
|
||||
STATIC = -static
|
||||
|
@ -29,17 +30,17 @@ LD = cc
|
|||
# Archiver
|
||||
AR = ar crs
|
||||
|
||||
# Your make shell. By default, the first found of /bin/dash, /bin/ksh,
|
||||
# /bin/sh. Except with bsdmake, which assumes /bin/sh is sane. bash and zsh
|
||||
# are painfully slow, and should be avoided.
|
||||
#BINSH = /bin/ash
|
||||
|
||||
X11PACKAGES = xft
|
||||
INCX11 = $$(pkg-config --cflags $(X11PACKAGES))
|
||||
LIBICONV = # Leave blank if your libc includes iconv (glibc does)
|
||||
LIBIXP = $(LIBDIR)/libixp.a
|
||||
|
||||
# Operating System Configurations
|
||||
# Your make shell. By default, the first found of /bin/dash, /bin/ksh,
|
||||
# /bin/sh. Except with bsdmake, which assumes /bin/sh is sane. bash and zsh
|
||||
# are painfully slow, and should be avoided.
|
||||
#BINSH = /bin/ash
|
||||
|
||||
## Operating System Configurations
|
||||
|
||||
# KenCC
|
||||
# Note: wmii *must* always compile under KenCC. It's vital for
|
||||
|
|
Loading…
Reference in New Issue