src/buddy.c

changeset 4144
3c81d3a36c68
parent 4125
25e4b68d52bc
child 4154
e1c6a1bdcf5a
--- a/src/buddy.c	Thu Dec 26 00:32:55 2002 +0000
+++ b/src/buddy.c	Thu Dec 26 15:37:46 2002 +0000
@@ -2484,8 +2484,8 @@
 	    y != blist_pos.y ||
 	    event->width != blist_pos.width ||
 	    event->height != blist_pos.height) {
-		blist_pos.x = x;
-		blist_pos.y = y;
+		blist_pos.x = x > 0 ? x : 0;
+		blist_pos.y = y > 0 ? y : 0;
 		blist_pos.width = event->width;
 		blist_pos.height = event->height;
 		save_prefs();

mercurial