Relax the check for ignoring events above the content view

This commit is contained in:
Richard Hult 2009-02-03 16:14:33 +01:00 committed by Alexander Larsson
parent 651335bc7e
commit 41d40786b1

View File

@ -519,9 +519,12 @@ find_window_for_ns_event (NSEvent *nsevent,
{
/* The non-grabbed case. */
/* Leave events above the window (e.g. possibly on the titlebar)
* to cocoa.
/* Ignore all events but mouse moved that might be on the title
* bar (above the content view). The reason is that otherwise
* gdk gets confused about getting e.g. button presses with no
* window (the title bar is not known to it).
*/
if (event_type != NSMouseMoved)
if (*y < 0)
return NULL;