mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
Relax the check for ignoring events above the content view
This commit is contained in:
parent
651335bc7e
commit
41d40786b1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user