From 737b7f39804f387af64146400d1c11c1dc744615 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Wed, 28 Jan 2009 21:14:08 +0000 Subject: [PATCH] Make full screen actually full screen and move window so that border is out of sight. --- scrotwm.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/scrotwm.c b/scrotwm.c index 0e3ab48..fa4d98b 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -1892,15 +1892,16 @@ configurerequest(XEvent *e) win->g.h = ev->height; if (win->ws->r != NULL) { /* this seems to be full screen */ - if (win->g.w > WIDTH(win->ws->r)) { - /* kill border */ - win->g.x -= 1; - win->g.w += 1; + if (win->g.w >= WIDTH(win->ws->r)) { + win->g.x = -1; + win->g.w = WIDTH(win->ws->r); + ev->value_mask |= CWX | CWWidth; } - if (win->g.h > HEIGHT(win->ws->r)) { + if (win->g.h >= HEIGHT(win->ws->r)) { /* kill border */ - win->g.y -= 1; - win->g.h += 1; + win->g.y = -1; + win->g.h = HEIGHT(win->ws->r); + ev->value_mask |= CWY | CWHeight; } } if ((ev->value_mask & (CWX|CWY)) && -- 1.7.10.4