Fix MWM hint regression. Closes issue #167.

This commit is contained in:
Kris Maglione 2010-01-22 19:31:26 -05:00
parent fc5341aaf7
commit e66b83eab2
4 changed files with 12 additions and 13 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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;

View File

@ -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