Number: 424
Title: Problem with popup windows in DOTTY
Submitter: Nicola Bellotto
Date: Sun Mar 21 09:09:21 2004
Subsys: Dotty/Lneato/Lefty
Version: 1.12
System: x86-Linux-RedHat 7.3
Severity: major
Problem:
Trying to set an attribute, select "set attr" from the menu. In the popup window, the text field doesn't accept input, instead all the characters typed on the keyboard are redirected to the console window. This happens with both KDE and GNOME, not with TWM. The same problem with the "save as" popup.
Comments:
{ek] wow, it's actually broken worse than the report indicates. keyboard input doesn't work in any window and the window manager refuses to highlight it when you move the mouse inside the window.

I just built lefty with plain Xaw and it appears to work fine. so there's either something weird in the way it was built, or it was built on a machine with a bad Xaw.

[ellson] I could not reproduce problem #424 using lefty binaries from:


   http://www.graphviz.org/pub/graphviz/graphviz-1.12-1.i386.rpm
on a Redhat 7.3 system.

I also tried last night's snapshot binaries on both RH7.3 and on Fedora, no problems.

[ek] the graphviz-1.12-1.i386.rpm version did have the problem when I tried it under KDE on my SuSE 9.0 system. when I built my own version on that system, it worked.

[belush] I am using the pre-built RPMs on a Linux RedHat 7.3, but I had the same problem with the binaries 1.12 and 1.13 compiled using this configure's option:

./configure --with-tclsh=/usr/lib/tcl8.3

The problem is just with the input text fields, it seems it cannot get the keyboard events (even lefty cannot accept input from the keyboard). I remind you that I got the same problem with both KDE and GNOME, instead with the old TWM it works correctly.

Below I include the information about the machine, the versions of dotty and lefty, the shared libraries dependencies (of lefty) and the list of the installed RPMs.

[ellson] I still have not been able to reproduce the problem with no focus in the input fields of pop-up windows in dotty.

Earlier I tried graphviz-1.12 on RH-7.3 and Fedora.

I made a few changes yesterday to improve detection of libXpm and libXaw, but I'm not convinced this will change anything w.r.t this bug.

Today I tried last night's snapshot binaries (from http://www.graphviz.org/pub/graphviz/CURRENT ) on RH7.3, RH9, and Fedora. Still no problem.

I checked the versions of Nicola's rpms for glibc and XFree86 and they match my RH9 system. I checked Nicola's and Lefteris' ldd output and both matched my systems.

I tried changing the window preferences for mouse focus: With sloppy focus, the focus is grabbed by the entry field as soon as the window is opened, with click-to-focus I had to click in the entry field before typing, but either way it seemed to work in a reasonable manner.

[belush] reading your comments, I also realized that lefty and dotty cannot get the focus at all, the entire window. I tryed to activate the windows manually with ALT+TAB, but no way. I was afraid it depended on some bad configuration of my system, but other x-applications like xman and xfig work correctly.
Fix:
The X libraries have to be loaded in the correct order in certain cases:


-lXaw -lSM -lICE -lXpm -lXt -lXmu -lXext -lX11 -lm
with -lXaw before -lXt.
Owner: ellson
Status: Fixed (25 March 2004)