wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 99481a3d27d76c7c2f882643931a77d3d0637383
parent d0e6fb2c2e47868ff144ab4acc1baded500e8000
Author: uriel <uriel@localhost.localdomain>
Date:   Wed,  3 Oct 2007 02:50:11 +0200

Go full screen when the client dimensions match exactly the screen dimensions, this is a hack, but I think it is the way some apps expect things to 'work'

Diffstat:
cmd/wmii/client.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/cmd/wmii/client.c b/cmd/wmii/client.c @@ -39,6 +39,9 @@ create_client(XWindow w, XWindowAttributes *wa) { c->w.type = WWindow; c->w.w = w; c->w.r = c->r; + + if((Dx(c->r) == Dx(screen->r)) && (Dy(c->r) == Dy(screen->r))) + fullscreen(c, True); prop_client(c, xatom("WM_PROTOCOLS")); prop_client(c, xatom("WM_TRANSIENT_FOR"));