macos: fix window activation during shadow click-through
authorChristian Hergert <christian@hergert.me>
Fri, 11 Mar 2022 01:26:56 +0000 (17:26 -0800)
committerChristian Hergert <chergert@redhat.com>
Wed, 16 Mar 2022 19:25:10 +0000 (12:25 -0700)
commit2c630a74cd3ce405363c1288a103dac60adcbc2c
tree1e28d9a06583482a63d1e1cbcd344b7eeb7d3080
parent9462b3fea2afb3b13d5168046f199f0f485b5700
macos: fix window activation during shadow click-through

If we are clicking through the shadow of a window, we need to take special
care to not raise the old window on mouseUp. This is normally done by the
display server for us, so we need to use the proper API that is public to
handle this (rather than CGSSetWindowTags()). Doing so requires us to
dispatch the event to the NSView and then cancel the activcation from
the mouseDown: event there.
gdk/macos/GdkMacosView.c
gdk/macos/GdkMacosWindow.c
gdk/macos/GdkMacosWindow.h
gdk/macos/gdkmacosdisplay-translate.c