> Also the chromium/google-chrome menu button doesn't work in
> either twm or ctwm.

I can confirm this (tested with chromium-55 and a freshly
compiled ctwm-4.0.0-pre.20161230 on openSUSE 13.2 x86_64).

This appears to be a bug in chromium, not in ctwm, because
it also happens when running without a window manager.

The real problem appears to be that chromium needs input focus
to be explicitly set for the main menu to work.  (Also the
right-click menu, but not the inspector (F12) menu.  Strange.)
Why this is so, is beyond be.  Venerable old programs like xterm
and also complex, newer programs like the gimp using a real
toolkit have no difficulties running without a window manager.

You can test this by doing

  xdotool selectwindow windowfocus

and clicking in the chromium window, et voilĂ , the menu works.

Of course, ctwm can give chromium the focus, but for some other
strange reason, chromium does not set the "Client accepts input
or input focus" window manager hint.

Again, you can test this by setting the flag manually with
xprop (you will need to hack the source because setting this
bit field with xprop is "not yet implemented", resulting in
a confusing error message).  If you manage this, you will
see that the menu now works even when switching to another
window and back to chromium.

Moral of the story: Just capitulate before nonconforming
applications and simply give the focus to all windows that the
mouse enters.  Comment out the test beginning on line 3128 in
file "event_handlers.c" ("If the window takes input...") (but
leave the inner test, "4 or 4a").  (And don't use the
"NoTitleFocus" option of ctwm.)

Reply via email to