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
(from parent 1:
32edf2c
)
Put some lower bounds on resize; from Alexander Hall
author
Marco Peereboom
<marco@conformal.com>
Tue, 10 Feb 2009 05:02:17 +0000
(
05:02
+0000)
committer
Marco Peereboom
<marco@conformal.com>
Tue, 10 Feb 2009 05:02:17 +0000
(
05:02
+0000)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
0863b62
..
29290d5
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-1918,10
+1918,10
@@
resize(struct ws_win *win, union arg *args)
handler[ev.type](&ev);
break;
case MotionNotify:
- if (ev.xmotion.x < 0)
- ev.xmotion.x = 0;
- if (ev.xmotion.y < 0)
- ev.xmotion.y = 0;
+ if (ev.xmotion.x <= 1)
+ ev.xmotion.x = 1;
+ if (ev.xmotion.y <= 1)
+ ev.xmotion.y = 1;
win->g.w = ev.xmotion.x;
win->g.h = ev.xmotion.y;