Bob Woodside wrote: > > Dominik Vogt wrote: > > > > ? On the other hand it seems SuSE 7.2 ships with a much improved > > xfm version (1.4.2.patchl04). Perhaps the problem has been solved > > there. > > Curious...I grabbed the 1.4.2p4 tarball, and it does indeed work. > Their > Changelog mentions a fix (in 1.4.2p3) that addresses this: "double > clicks in the file window finally work in ol[v]wm/kwm even if the focus > policy is "click to focus" (app window still needs to be fixed)". I'll > have to see what they did, and discuss it with the current maintainer.
I discussed this with Till Straumann, who made this fix for xfm. He said that they'd found that, under kwm and ol(v)wm, extraneous EnterNotify/LeaveNotify events were getting sent to the widgets on which double clicks failed, which seemed to confuse the XtTranslations stuff used to catch a double click. His workaround was to insert an event handler that would simply eat these events. This is exactly what is happening with FVWM now (in ClickToFocus mode), and it looks like a bug to me. I know, what the window manager does isn't supposed to interfere with the top level's interaction with its children, but that appears to be what we're doing, somehow. To test this, I created a minimal program with a label widget and an XtTranslations string to catch a double click. It fails. I added an event handler to eat the extra events, just like the one in the latest xfm, and it works. The source is attached. Compile it as it is and run it with MouseFocus, and the label text changes when you double click on it; with ClickToFocus, it fails. Comment out the line "#undef EATENTERLEAVEEVENTS", and the event handler eats the extra events and the program works under either focus policy. I don't have any idea yet where the problem lies or when it may have been introduced ("sometime within the past year" covers a lot of territory). The only thing I'm pretty sure of now is that it's *not* in your changes to the grab code (well, that's the area where one of us - probably me - introduced this symptom before). Any ideas? Cheers, Bob
dblclktst.tar.gz
Description: GNU Zip compressed data