FVWM: Bug in fvwm 2.0.41

From: Graham Barr <bodg_at_tiuk.ti.com>
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
_at_@ -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 <bodg_at_tiuk.ti.com>
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 majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu Mar 14 1996 - 08:05:09 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST