Re: FVWM: Here is a fvwm-2.0.38 bug.

From: Henrique Martins <martins_at_martins.hpl.hp.com>
Date: Mon, 30 Oct 1995 22:18:56 -0800

>> Programs like clocks and xloads do not accept the keyboard focus -- they
>> can (and do) tell this to the window manager so that the window manager
>> doesn't waste time or effort dumping characters down the bit bucket!
>
> This is true, but not of dclock. Dclock uses keystrokes for various
> things, for instance, 'q' to quit, 's' to display seconds, and 'd' to
> display the date.


  I had to fix this for sxpm once. The problem exists for all Xt based
  programs that initialize the top level shell like this:

    toplevel =
      XtInitialize (name,
                    "DClock",
                    options,
                    XtNumber(options),
                    &argc,
                    argv);

  as the XtNinput resource will be set to False, by default, and FVWM will
  not pass any input to to that program, as the ICCM requires. I believe
  that FVWM maybe the only WM that complies to this requirement.

  To fix this add to dclock.c, an include for

     #include <X11/Shell.h>

  change the line that declares:
    Arg arg;
  to
    Arg arg[1];

  and add, after the call to initialize, the following two lines:

    XtSetArg (arg[0], XtNinput, True);
    XtSetValues (toplevel, arg, 1);

  That ought to do it.

  -- Henrique (martins_at_hpl.hp.com)

--
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 Oct 31 1995 - 00:19:16 GMT

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