macos: allow dropping NSEvent without propagation
authorChristian Hergert <christian@hergert.me>
Wed, 9 Mar 2022 21:19:22 +0000 (13:19 -0800)
committerChristian Hergert <christian@hergert.me>
Wed, 9 Mar 2022 21:19:22 +0000 (13:19 -0800)
commit32935d9fb01a78e8693fbcaa1005c4b79903cbd6
tree8efb73224d42c39c8096d65143c695c029579685
parentb390e1da4ffa41da97b6686545fd4d32f4c6d22b
macos: allow dropping NSEvent without propagation

There are cases we might want to consume a NSEvent without creating a
GdkEvent or passing it along to the NSApplication for processing. This
creates a new value we can use and check against to propagate that without
having to do out parameters at the slightly odd invalid pointer value for
a GdkEvent (similar to how MMAP_FAILED is done).
gdk/macos/gdkmacosdisplay-private.h
gdk/macos/gdkmacosdisplay.c