macos: allow dropping NSEvent without propagation
authorChristian Hergert <christian@hergert.me>
Wed, 9 Mar 2022 21:19:22 +0000 (13:19 -0800)
committerChristian Hergert <chergert@redhat.com>
Wed, 16 Mar 2022 19:25:10 +0000 (12:25 -0700)
commit913f6d4a4fc63f2ba19c00b8db6d9c3ab268adc9
tree5364789575a97cbaad08ce88d98b35c711bec665
parentcb386ec2a26de106822c24fd3cc9a276c978d9ad
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