Re: FVWM: FvwmTaskBar doesn't quite work (Solaris)

From: Richard Lister <ric_at_giccs.georgetown.edu>
Date: Thu, 28 Aug 1997 22:46:24 -0400

On Thu, 28 Aug 1997 17:15:08 -0700
Andrew Jaffe <jaffe_at_physics.berkeley.edu>
wrote concerning 'FVWM: FvwmTaskBar doesn't quite work (Solaris)':
> Hi-
>
> I tried to compile FvwmTaskBar (w/ Fvwm2.0.46) for solaris, and it all
> appears to work fine, but when it runs, it doesn't set the X resource
> and class correctly, so none of the "Style" setups take hold.
>
> Any ideas?


You're correct that Class and Resource aren't set, but

   Style "FvwmTaskBar" NoTitle, HandleWidth 0

still worked for me (2.0.46/Linux/X11R6).

Style checks window name if class and resource aren't matched.

Nevertheless, the below patch to FvwmTaskBar.c should set the class and
resource. Not properly tested ... caveat patcher!


Ric

Richard J Lister, Georgetown Institute for Cognitive and Computational Sciences
Georgetown University Medical Center, Washington, DC 20007, USA
Phone: +1 202-687 2878
Email: ric_at_giccs.georgetown.edu
Web: http://www.giccs.georgetown.edu/~ric/


----------------------------------cut here--------------------------------
*** FvwmTaskBar.c.orig Thu Aug 28 22:25:35 1997
--- FvwmTaskBar.c Thu Aug 28 22:40:19 1997
***************
*** 1015,1020 ****
--- 1015,1021 ----
     unsigned int dummy1,dummy2;
     int x,y,ret,count;
     Window dummyroot,dummychild;
+ XClassHint *class_hints;
  
     if (!(dpy = XOpenDisplay(""))) {
        fprintf(stderr,"%s: can't open display %s", Module,
***************
*** 1100,1105 ****
--- 1101,1113 ----
     
     XSetWMNormalHints(dpy,win,&hints);
     
+ /* Set some class hints like a good little X client */
+ /* Module + 1 gets module name without leading '*' */
+ class_hints = XAllocClassHint();
+ class_hints->res_name = Module + 1;
+ class_hints->res_class = Module + 1;
+ XSetClassHint(dpy, win, class_hints);
+
     XGrabButton(dpy,1,AnyModifier,win,True,GRAB_EVENTS,GrabModeAsync,
                 GrabModeAsync,None,None);
     XGrabButton(dpy,2,AnyModifier,win,True,GRAB_EVENTS,GrabModeAsync,



--
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 Thu Aug 28 1997 - 21:45:40 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST