Subject: [Patch ?]Re: A problem with EdgeResistance, EdgeScroll (fvwn 2.1.45)

From: Jui-Hsuan Feng <[email-masked]>
Date: Fri, 18 Dec 1998 17:35:50 CST

Hi folks,

I have wished to implement this for a long time. Why don't we put those
Pan Frames between ONTOP windows and the rest. Hence, if users want to edge
scroll, just drag mouse to the edge as usual but not on the top of a
StaysOnTop window. Furthermore, FvwmTaskBar can work as long as set the
StaysOnTop attribute. Patch is at the end of this email. Thanks.

--
J. Joshua Feng                            (O)608/262-3640
Electrical & Computer Engr., Univ. of Wisconsin - Madison
http://www.cae.wisc.edu/~fengj  [email-masked]

Index: misc.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/fvwm/misc.c,v
retrieving revision 1.15
diff -u -r1.15 misc.c
--- misc.c      1998/11/24 10:25:28     1.15
+++ misc.c      1998/12/18 23:05:53
@@ -910,6 +910,12 @@
       count += 2;
     }
 
+  /* used to be in the raisePanFrame */
+  if (Scr.PanFrameTop.isMapped)    count++;
+  if (Scr.PanFrameLeft.isMapped)   count++;
+  if (Scr.PanFrameRight.isMapped)  count++;
+  if (Scr.PanFrameBottom.isMapped) count++;
+
   wins = (Window *)safemalloc(count*sizeof(Window));
 
   i=0;
@@ -925,6 +931,12 @@
        }
     }
 
+  /* used to be in the raisePanFrame */
+  if (Scr.PanFrameTop.isMapped)    wins[i++] = Scr.PanFrameTop.win;
+  if (Scr.PanFrameLeft.isMapped)   wins[i++] = Scr.PanFrameLeft.win;
+  if (Scr.PanFrameRight.isMapped)  wins[i++] = Scr.PanFrameRight.win;
+  if (Scr.PanFrameBottom.isMapped) wins[i++] = Scr.PanFrameBottom.win;
+  
   /* now raise transients */
 #ifndef DONT_RAISE_TRANSIENTS
   for (t2 = Scr.FvwmRoot.next; t2 != NULL; t2 = t2->next)
@@ -973,7 +985,7 @@
 
   XRestackWindows(dpy,wins,i);
   free(wins);
-  raisePanFrames();
+  /* raisePanFrames(); */
 }

Index: virtual.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/fvwm/virtual.c,v
retrieving revision 1.11
diff -u -r1.11 virtual.c
--- virtual.c   1998/12/09 06:15:21     1.11
+++ virtual.c   1998/12/18 23:05:54
@@ -280,6 +280,8 @@
  * For some reason, this seems to be unneeded.
  *
  ***************************************************************************/
+/* Only used in RaiseWindow, replaced by new scheme */
+/*
 void raisePanFrames(void)
 {
   if (Scr.PanFrameTop.isMapped) XRaiseWindow(dpy,Scr.PanFrameTop.win);
@@ -287,6 +289,7 @@
   if (Scr.PanFrameRight.isMapped) XRaiseWindow(dpy,Scr.PanFrameRight.win);
   if (Scr.PanFrameBottom.isMapped) XRaiseWindow(dpy,Scr.PanFrameBottom.win);
 }
+*/
 
 /****************************************************************************
  *
--
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].