Re: FVWM: Bug: fvwm failing to unmap window sometimes

From: Jamie Sparks <jsparks_at_sed.psrw.com>
Date: Tue, 26 Nov 1996 10:39:43 -0500 (EST)

I realize this is a moron question, but I fit the bill, so...

How does one startup fvwm upon login? An entry in the ~/.xinitrc file?

jamie

*** events.c.orig Mon May 27 15:33:26 1996
--- events.c Mon Nov 25 11:48:11 1996
***************
*** 872,880 ****
    Window dumwin;
    XEvent dummy;
    extern FvwmWindow *colormap_win;
  
! if(Event.xunmap.event != Event.xunmap.window)
! return;
    /*
     * The July 27, 1988 ICCCM spec states that a client wishing to switch
     * to WithdrawnState should send a synthetic UnmapNotify with the
--- 872,887 ----
    Window dumwin;
    XEvent dummy;
    extern FvwmWindow *colormap_win;
+ int weMustUnmap;
  
! /*
! * Don't ignore events as described below.
! */
! if(Event.xunmap.event != Event.xunmap.window &&
! (Event.xunmap.event != Scr.Root || !Event.xunmap.send_event) )
! {
! return;
! }
    /*
     * The July 27, 1988 ICCCM spec states that a client wishing to switch
     * to WithdrawnState should send a synthetic UnmapNotify with the
***************
*** 883,891 ****
--- 890,900 ----
     * we looked for the FvwmContext using that field, so try the window
     * field also.
     */
+ weMustUnmap = 0;
    if (!Tmp_win)
      {
        Event.xany.window = Event.xunmap.window;
+ weMustUnmap = 1;
        if (XFindContext(dpy, Event.xany.window,
                         FvwmContext, (caddr_t *)&Tmp_win) == XCNOENT)
          Tmp_win = NULL;
***************
*** 893,898 ****
--- 902,910 ----
    
    if(!Tmp_win)
      return;
+
+ if(weMustUnmap)
+ XUnmapWindow(dpy, Event.xunmap.window);
  
    if(Tmp_win == Scr.Hilite)
      Scr.Hilite = NULL;

--
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 Tue Nov 26 1996 - 09:40:37 GMT

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