Subject: FVWM: Bug in fvwm 2.0.41

From: Graham Barr <[email-masked]>
Date: Thu, 14 Mar 96 14:01:48 GMT

Hi,
   I have just started looking at convering to fvwm2 and I am very please
with it. But I do have a small bug to report. It happens when I try to
start an application iconic and also specify where to place the icon

For example

 xterm  -xrm  '*iconGeometry: +940+0' -iconic 

fvwm2 first places the icon ar (0,0) then moves it to the required location
(940,0). However if the location (0,0) is completely obscured by another
window fvwm2 does not move the icon to the required location until the
icon at (0,0) is exposed in some way, like closing the window which
is obscuring it.

I tracked this to a line of code in events.c, here is a patch which fixes
the problem by initially placing the icon at the wmhints location instead of
(0,0)

Regards,
Graham.

--- events.c.orig	Thu Mar 14 13:50:44 1996
+++ events.c	Thu Mar 14 13:52:58 1996
@@ -765,7 +765,14 @@
 	  break;
 	  
 	case IconicState:
-	  Iconify(Tmp_win, 0, 0);
+	  if (Tmp_win->wmhints)
+	    {
+	      Iconify(Tmp_win, Tmp_win->wmhints->icon_x, Tmp_win->wmhints->icon_y);
+	    }
+	  else
+	    {
+	      Iconify(Tmp_win, 0, 0);
+	    }
 	  break;
 	}
       if(!PPosOverride)

--
Graham Barr <[email-masked]>
Texas Instruments Ltd.

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