]> Pileus Git - ~andy/gtk/commit
quartz: Process motion events within windows bounds without window set
authorKristian Rietveld <kris@lanedo.com>
Sun, 6 Nov 2011 08:25:16 +0000 (09:25 +0100)
committerKristian Rietveld <kris@lanedo.com>
Sun, 6 Nov 2011 09:15:16 +0000 (10:15 +0100)
commit9f45c37be74fb601653b787875b18c2a3352e69a
tree1e5a858dd0503d6e376b650e74d9bd0254541cbc
parent7269cdf315ffb72918e364aa2dd9f8fc06cd0ca8
quartz: Process motion events within windows bounds without window set

When an NSEvent does not have the window field set, we already assumed
the event was not for us and discarded it.  But for NSMouseMoved events
we now make an exception, because such events generated after
using/clicking the main menu bar have the window field set to NULL while
the application window still has focus.

We used to experience a loss of motion events after using the menu bar,
this could be seen in buttons that stopped prelighting and first
clicks often being ignored unless you clicked somewhere else first.
These issues are fixed by this patch.
gdk/quartz/gdkevents-quartz.c