Web lists-archives.com

Re: Strange event handling problem with Xfce/LXDE - which pkg responsible?




Hi,

thanks for the feedback.

On Wed, 15 May 2019 18:30:58 +0200
"Thomas Schmitt" <scdbackup@xxxxxxx> wrote:

> Hi,
> 
> Michael Lange wrote:
> > Does anyone know if both Xfce and LXDE share some library that might
> > be responsible for that presumably faulty behavior?
> 
> Is it sure that not particular versions of tkinter are the common
> property of the misbehaving systems ?
> 
> I.e. does a plain wish script instead of python+tkinter show the same
> inappropriate events ?

I am rather sure that this doesn't have anything to do with
Python/Tkinter, though I actually hadn't checked with wish before. Ok, so
I set up this little tcl script:

#############################################
frame .f -bg yellow -width 400 -height 300
pack .f -fill both -expand 1

bind .f <Button-1> {puts "Button-1 event"}
bind .f <Enter> {puts "Enter event"}
bind .f <Leave> {puts "Leave event"}
#############################################

As expected, it's the same as with Tkinter, when the mouse button is
pressed, Enter and Leave events are triggered. So far it has been
reported that this does _not_ happen with MacOs, Gnome, IceWm. It's been
observed so far on Xfce, Lxde and just now Openbox-session (no surprise
probably, since Lxde seems to use Openbox, too).

Other mouse buttons show the same behavior. The same thing happened on
various systems, like Stretch, Sid, Ubuntu 19.04, Ubuntu 18.04.
Since it only seems to happen with Xfce/Xfwm and Openbox/Lxde I think it
is more likely that it is the window manager's fault than that of Tk.

Regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

But Captain -- the engines can't take this much longer!