Subject: Escape during manual placement puts window at (-1, -1)

From: Andrew Pimlott <[email-masked]>
Date: Thu, 13 May 2004 08:24:10 -0700

The ManualPlacement documentation says that if you hit Escape during
manual placement, the window is put in the top left corner of the
screen.  That was true in old (2.2?) FVWMs, but for some time it has
actually put the window at (-1, -1), ie one pixel off the upper left.
The following fixes this, but I don't know whether it has other
consequences.

Andrew

--- placement.c.orig	2004-05-13 08:23:02.000000000 -0700
+++ placement.c	2004-05-13 08:23:03.000000000 -0700
@@ -913,8 +913,8 @@
 		/* either "smart" placement fail and the second
 		 * choice is a manual placement (TileManual) or we
 		 * have a manual placement in any case (Manual) */
-		xl = -1;
-		yt = -1;
+		xl = 0;
+		yt = 0;
 		if (GrabEm(CRS_POSITION, GRAB_NORMAL))
 		{
 			int mx;

--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked]