Number: 32
Title: Dotty grabbing keyboard input
Submitter: Marko Makela
Date: 06 Jun 2001
Subsys: Dotty/Lneato/Lefty
Version: (CVS 31 May 2001)
System: linux
Severity: major
Problem:
I found a way to reproduce the dotty bug that causes keyboard input to be grabbed from the window manager. The bug appears in twm, fvwm and fvwm2, and possibly other window managers. All window managers were configured for focus-follows-mouse.

I start the program by typing "dotty". This is the version I checked out from the CVS on May 31. When I move the mouse pointer to the empty dotty graph window and hold a modifier key (Control or Alt) down, nothing bad happens: I can use window manager key commands e.g. to raise or lower the window. But as soon as I release the modifier keys, dotty will grab the keyboard until I move the mouse pointer outside the window. This is a bit annoying, since I'm used to moving the mouse pointer with some key combinations defined in the window manager. The text view window does not have this bug.

The "close view" command does not cause a segmentation fault in this version of dotty. The BackSpace and Delete keys cause beeps in the text view window, however.

I'm sorry that I don't have patches. But I can give a hint that may be of some help. Some years ago when I experimented with Xaw programming, I noticed that the order in which the libraries are passed to the linker affect the way the program works. On some systems, you could even omit some of the necessary libraries; it'd link, but it would work improperly in some cases (maybe it didn't respond to editres queries, which dotty does, for all TopLevelShell trees). I'm using a Debian GNU/Linux "unstable" system on i386 if that matters. XFree86 is version 3.3.6.
Owner: ek
Status: Fixed