Subject: FVWM: CurrentScreen patch

From: Dan Niles <[email-masked]>
Date: Fri, 17 May 1996 09:56:26 -0500

Here is a patch to make CurrentScreen only match the current view port.
This patch also adds CurrentPage, which works like CurrentScreen used
to work.

-------------------- fvwm-2.0.42-CurrentScreen.patch ---------------------
--- builtins.c.second	Fri May 17 09:44:32 1996
+++ builtins.c	Fri May 17 09:55:04 1996
@@ -1681,7 +1681,7 @@
   Bool needsIconic = 0;
   Bool needsNormal = 0;
   Bool needsCurrentDesk = 0;
-  Bool needsCurrentScreen = 0;
+  Bool needsCurrentPage = 0;
   Bool needsVisible = 0;
   Bool needsInvisible = 0;
   char *AnyWindow = "*";
@@ -1731,7 +1731,12 @@
       else if(mystrcasecmp(condition,"!Visible")==0)
         needsInvisible = 1;
       else if(mystrcasecmp(condition,"CurrentScreen")==0)
-        needsCurrentScreen = 1;
+	{
+	  needsCurrentDesk = 1;
+	  needsCurrentPage = 1;
+	}
+      else if(mystrcasecmp(condition,"CurrentPage")==0)
+        needsCurrentPage = 1;
       else if(mystrcasecmp(condition,"CirculateHit")==0)
         useCirculateHit = 1;
       else if(mystrcasecmp(condition,"CirculateHitIcon")==0)
@@ -1785,7 +1790,7 @@
            ((!needsCurrentDesk)||(fw->Desk == Scr.CurrentDesk))&&
            ((!needsVisible)||(fw->flags & VISIBLE))&&
            ((!needsInvisible)||(!(fw->flags & VISIBLE)))&&
-           ((!needsCurrentScreen)||((fw->frame_x < Scr.MyDisplayWidth)&&
+           ((!needsCurrentPage)||((fw->frame_x < Scr.MyDisplayWidth)&&
                                     (fw->frame_y < Scr.MyDisplayHeight)&&
                                     (fw->frame_x+fw->frame_width > 0)&&
                                     (fw->frame_y+fw->frame_height > 0)))))
--
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].