macOS: Clamp damage region to surface size
authorLuca Bacci <luca.bacci982@gmail.com>
Wed, 13 Sep 2023 14:50:08 +0000 (16:50 +0200)
committerLuca Bacci <luca.bacci982@gmail.com>
Wed, 13 Sep 2023 15:39:51 +0000 (17:39 +0200)
commit01ab69659d664b78bb03336a0d55bd173cdd3c59
treef23cf8d1e4bc61d08f29abd7357669db0827649d
parent71116b3e609e22f50632e2e853f2d4527eeceb51
macOS: Clamp damage region to surface size

...in _gdk_macos_cairo_context_begin_frame ()

GdkMacosCairoContext needs regions that are clamped to the
actual surface size.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5812
gdk/macos/gdkmacoscairocontext.c