spurious leave and enter events on button press



With sawfish 1.3 CVS, a mouse click on a window sends a
leave_notify_event and a enter_notify_event to the window first,
before sending the button_press_event.

This only happens on the first click; the second click of a
`double-click' only sends the button_press_event.

This does not happen with other windowmanagers, but interestingly a
similar bug was fixed in metacity the night before I reported this bug
to metacity and sawfish's bugzilla.

I've attached a test program, written by Gustavo Carneiro for his
metacity bug report #102209.  See also #114626, #114625.

click:
** Message: leave_notify_event
** Message: enter_notify_event
** Message: button_press_event
** Message: -----------

double-click, click1:
** Message: leave_notify_event
** Message: enter_notify_event
** Message: button_press_event
** Message: -----------
double-click, click2:
** Message: button_press_event
** Message: -----------

** Message: leave_notify_event

Any chance to get this fixed in sawfish too, or a hint how to debug
this?  I've tried debugging this, but when I hit a breakpoint at
events.c:button_press (), the leave and enter events have already been
sent...

Greetings,
Jan.

-- 
Jan Nieuwenhuizen <janneke gnu org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]