Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
741c46a
)
Make full screen actually full screen and move window so that border is out
author
Marco Peereboom
<marco@conformal.com>
Wed, 28 Jan 2009 21:14:08 +0000
(21:14 +0000)
committer
Marco Peereboom
<marco@conformal.com>
Wed, 28 Jan 2009 21:14:08 +0000
(21:14 +0000)
of sight.
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
0e3ab48
..
fa4d98b
100644
(file)
--- 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 */
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 */
/* 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)) &&
}
}
if ((ev->value_mask & (CWX|CWY)) &&