Re: FVWM: Fvwm configuration questions: ClickToRaise & WindowName style

From: Markus Gutschke <gutschk_at_uni-muenster.de>
Date: 05 Dec 1996 00:57:39 +0100

The patch that I posted with my last message still contained a minor
nuisance. It effectively turned "RaiseLower" into "Lower". Here comes
a bug-fixed version:

--- fvwm/add_window.c.orig Thu Apr 11 17:25:58 1996
+++ fvwm/add_window.c Wed Dec 4 23:41:13 1996
_at_@ -492,8 +492,10 @@
                         &a,&b,&JunkChild);
   tmp_win->xdiff -= a;
   tmp_win->ydiff -= b;
+#ifdef SUPPRESS_CLICKTORAISE
   if(tmp_win->flags & ClickToFocus)
     {
+#endif
       /* need to grab all buttons for window that we are about to
        * unhighlight */
       for(i=0;i<3;i++)
_at_@ -506,7 +508,9 @@
                         ButtonPressMask, GrabModeSync,GrabModeAsync,None,
                         Scr.FvwmCursors[SYS]);
           }
+#ifdef SUPPRESS_CLICKTORAISE
     }
+#endif
   BroadcastConfig(M_ADD_WINDOW,tmp_win);
 
   BroadcastName(M_WINDOW_NAME,tmp_win->w,tmp_win->frame,
--- fvwm/events.c.orig Mon May 27 21:33:26 1996
+++ fvwm/events.c Thu Dec 5 00:53:22 1996
_at_@ -1030,6 +1030,26 @@
 
         }
     }
+
+#ifndef SUPPRESS_CLICKTORAISE
+ else if ((Tmp_win) && !(Tmp_win->flags & ClickToFocus) &&
+ Event.xbutton.window == Tmp_win->frame)
+ {
+ if (Tmp_win != Scr.LastWindowRaised &&
+ (Event.xbutton.state &
+ (ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask)) == 0 &&
+ GetContext(Tmp_win,&Event, &PressedW) == C_WINDOW)
+ {
+ RaiseWindow(Tmp_win);
+ KeepOnTop();
+ }
+ XSync(dpy,0);
+ XAllowEvents(dpy,ReplayPointer,CurrentTime);
+ XSync(dpy,0);
+ return;
+ }
+#endif
+
   XSync(dpy,0);
   XAllowEvents(dpy,ReplayPointer,CurrentTime);
   XSync(dpy,0);


-- 
Markus Gutschke            Internet: gutschk_at_math.uni-muenster.de
Schlage 5a
D-48268 Greven-Gimbte
Germany
--
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 Wed Dec 04 1996 - 21:06:51 GMT

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