Subject: Icon History Patch

From: "Michael Kirby" <[email-masked]>
Date: Thu, 23 Jan 1997 07:01:32 PST

Okay,

The only response I got from my query was that it couldn't be done and
was a minor annoyance.  So I patched it.  I of course did not do
it in a way that is 100% proper.  I think the right way to do it would be
to make a setting in style, so you could set a type of window to remember
where the icon was placed.  But that looked complicated, so I didn't bother.

What I did was add a new compile-time flag ICONHISTORY that uses
the behavior associated with moving an icon to remember where it was
placed after it was iconified.  Also I patched the auto-find part of the code
to not place a new icon if a previous icon had been moved to that spot (even
if it was iconified).

Let me know what you think.  If this isn't the right way to do it, I appoligize
and are willing to be instructed in the proper procedures.  If this 
causes more problems then its worth, let me know that too, I have a fairly
simple setup with fvwm. (I'd love to see Andrew's setup...Considering
the number of patches and features he's added I gotta believe its the kitchen
sink desktop :-)

This patch is for fvwm-2.0.45-almost on file fvwm/icons.c  I doubt anything
changed in that file between the almost & the release.  Did it??

Mike
---
[email-masked]
To obtain my PGP public key, mail "SEND PUB KEY" in the 
subject to "[email-masked]"

-------------- Enclosure number 1 ----------------
*** icons.c.orig	Thu Jan 23 09:44:51 1997
--- icons.c	Thu Jan 23 09:49:11 1997
***************
*** 438,444 ****
--- 438,449 ----
  		    {
  		      if(test_window->Desk == t->Desk)
  			{
+ #if ICONHISTORY
+               if(((test_window->flags & ICONIFIED) || 
+                  (test_window->flags  & ICON_MOVED)) &&
+ #else
  			  if((test_window->flags&ICONIFIED)&&
+ #endif
                               (test_window->icon_w||test_window->icon_pixmap_w)&&
  			     (test_window != t))
  			    {
***************
*** 481,486 ****
--- 486,496 ----
  		t->icon_x_loc,t->icon_y_loc,
  		t->icon_w_width, t->icon_w_height+ t->icon_p_height);
      }
+ 
+ #ifdef ICONHISTORY
+     t->flags |= ICON_MOVED;
+ #endif
+ 
    
  }
  
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
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].