-
-
Save alanmcgovern/2667edba4cbc149fc655 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1273 if (!nswindow) | |
1274 { | |
1275 GdkWindow *toplevel = NULL; | |
1276 | |
1277 if (event_type == NSMouseMoved) | |
1278 { | |
1279 /* Motion events received after clicking the menu bar do not have the | |
1280 * window field set. Instead of giving up on the event immediately, | |
1281 * we first check whether this event is within our window bounds. | |
1282 */ | |
1283 NSPoint screen_point = [NSEvent mouseLocation]; | |
1284 gint x_tmp, y_tmp; | |
1285 | |
1286 toplevel = find_toplevel_under_pointer (_gdk_display, | |
1287 screen_point, | |
1288 &x_tmp, &y_tmp); | |
1289 } | |
1290 | |
1291 if (!toplevel) | |
1292 return FALSE; | |
1293 } | |
1294 | |
1295 /* Ignore events and break grabs while the window is being | |
1296 * dragged. This is a workaround for the window getting events for | |
1297 * the window title. | |
1298 */ | |
1299 if ([(GdkQuartzWindow *)nswindow isInMove]) | |
1300 { | |
1301 _gdk_quartz_events_break_all_grabs (get_time_from_ns_event (nsevent)); | |
1302 return FALSE; | |
1303 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment