Hi everyone,

I noticed today that pyglet generates an on_mouse_leave event followed by an
on_mouse_enter event, both with the same mouse coordinate, whenever the mouse is
pressed.  I assume this is not supposed to happen, and I'm wondering if anyone
else gets the same behavior.  Here's a simple program that just creates a window
and logs every on_mouse_enter and on_mouse_leave event:

#!/usr/bin/env python3

import pyglet

window = pyglet.window.Window()

def on_mouse_enter(x, y):
    print('on_mouse_enter({}, {})'.format(x, y))

def on_mouse_leave(x, y):
    print('on_mouse_leave({}, {})'.format(x, y))


For me, both handlers are triggered every time I press the mouse.  (I'm on
Fedora 23 with Intel integrated graphics.)

If this really is a bug, I wouldn't mind trying to fix it if someone can show me
where to look.


You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to