> ctwm seems to have focus issues with xvile.  The best way I can
> describe this behavior is that only the move recently executed copy of
> xvile will receive the focus. I can raise older copies of xvile but
> they won't accept the keyboard focus.

In the version of ctwm currently running on my machine (3.6),
xvile in fact *does* get the input focus, but the window frame
does not change color to indicate this.

The problem is that xvile does not set the "Input" window
manager hint.  According to the XSetWMHints manual page,

  Applications that expect input but never explicitly set
  focus to any of their subwindows (that is, use the push
  model of focus management), such as X Version 10 style
  applications that use real-estate driven focus, should
  set this member to True.

Quick fix: in the file "x11.c" in the vile source code,
change

  hints->flags = IconPixmapHint;

to

  hints->flags = InputHint|IconPixmapHint;

Reply via email to