macos: avoid unnecessarily destroying cairo_t
authorChristian Hergert <christian@hergert.me>
Thu, 3 Feb 2022 21:01:46 +0000 (13:01 -0800)
committerChristian Hergert <christian@hergert.me>
Fri, 4 Feb 2022 03:26:16 +0000 (19:26 -0800)
commit58159552baf9789bf1724d468a78876eac5104d0
treecdd3fe7067d3d7b68f34f1bfa2aa81fe71433345
parent4bff24f83ac2f02a51f68faef507b20578f10c09
macos: avoid unnecessarily destroying cairo_t

This avoids destroying a cairo_t when we are within the frame as it
otherwise causes the surface to unnecessarily flush.
gdk/macos/gdkmacoscairocontext.c