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:
c47f074
)
Fix smaller than possible resize.
author
Marco Peereboom
<marco@conformal.com>
Thu, 29 Jan 2009 22:31:27 +0000
(22:31 +0000)
committer
Marco Peereboom
<marco@conformal.com>
Thu, 29 Jan 2009 22:31:27 +0000
(22:31 +0000)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
43a0d4d
..
fbb41b3
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-1689,6
+1689,10
@@
resize(struct ws_win *win, union arg *args)
break;
case MotionNotify:
XSync(display, False);
break;
case MotionNotify:
XSync(display, False);
+ if (ev.xmotion.x < 0)
+ ev.xmotion.x = 0;
+ if (ev.xmotion.y < 0)
+ ev.xmotion.y = 0;
win->g.w = ev.xmotion.x;
win->g.h = ev.xmotion.y;
resize_window(win);
win->g.w = ev.xmotion.x;
win->g.h = ev.xmotion.y;
resize_window(win);