On Fri 08 Oct 2021 at 23:18:00 -0700, Jonathan Thornburg wrote:
> I'm using ctwm 4.0.3
> > (bzr:fulle...@over-yonder.net-20190721212859-1hko50q7rrvqttfb)
> on OpenBSD 7.0 (2021-Sep-27 snapshot).  My .ctwmrc contains the lines
> "F1"    =      : window : f.raise
> "F1"    =      : title  : f.raise
> "F12"   =      : window : f.lower
> "F12"   =      : title  : f.lower
> When I start ctwm, these work fine -- the F1 key raises the current
> window to the front, and the F12 lowers the current window to the back.
> The problem is, after running ctwm for a while (anywhere from a few
> minutes to some hours, depending on my usage), these keys stop working
> (they no longer raise/lower the current window).  I've checked with
> 'xev' and these keys are still generating keypress X events.

The most common thing that causes such a symptom is having Caps Lock
pressed. It counts as a modifier, so pressing CapsLock + F1 doesn't
match your mapping.

> Is this a known issue with ctwm?  If not, are there debug features
> I could activate to help in tracking down the problem?

If that is not it, there is a #define DEBUG_EVENTS that you could
enable in event_handlers.c, and recompile ctwm. Unfortunately it doesn't
add any output for key presses... but you could add some printf
statements inside the function HandleKeyPress() to check how far it
gets. If you restart the modified ctwm (ctwm --replace) from a text
console, it can freely print its stuff, unhindered by X.

___ "Buying carbon credits is a bit like a serial killer paying someone else to
\X/  have kids to make his activity cost neutral." -The BOFH    falu.nl@rhialto

Attachment: signature.asc
Description: PGP signature

Reply via email to