Subject: FVWM Left Menus

From: Dan Espen <[email-masked]>
Date: Mon, 20 Jan 1997 08:24:40 -0500

This patch should fix the problems with "Left Menus":

*** menus.c.orig	Sun Jan 19 21:08:26 1997
--- menus.c	Sun Jan 19 21:12:10 1997
***************
*** 50,56 ****
  int menu_aborted = 0;
  
  #ifdef LEFT_MENUS
! int PrevActiveMenuX = -1;
  
  #endif /* LEFT_MENUS */
  extern XContext MenuContext;
--- 50,56 ----
  int menu_aborted = 0;
  
  #ifdef LEFT_MENUS
! static int PrevActiveMenuX = -1;
  
  #endif /* LEFT_MENUS */
  extern XContext MenuContext;
***************
*** 818,823 ****
--- 818,830 ----
      return;
    
    menu_on--;
+ 
+ #ifdef LEFT_MENUS
+   if (menu_on == 0) {                   /* last menu down? */
+     PrevActiveMenuX = -1;               /* Return to no prev item state */
+   }                                     /* end last menu down */
+ #endif /* LEFT_MENUS */
+ 
    if (ActiveItem)
      ActiveItem->state = 0;

---end of patch---

(The change of "PrevActiveMenuX" to static is not necessary to fix the
problems, but the variable is not globally used.)

--
Dan Espen                                    Phone: (908) 699-5570
[email-masked]
444 Hoes Lane  Room RRC 1C-214
Piscataway, NJ 08854
--
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].