mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
macOS/YDK: Fix crash when resizing windows
_gdk_window_process_updates_recurse() may recurse (duh), and reenter drawRect. So `needs_display_region` needs to be unset immediately, not at the end of the method.
This commit is contained in:
parent
c7d307ba65
commit
7f6f3d64f1
1 changed files with 1 additions and 0 deletions
|
|
@ -768,6 +768,7 @@ static int showInvalidation = 0;
|
|||
region = gdk_region_rectangle (&r);
|
||||
if (impl->needs_display_region) {
|
||||
gdk_region_destroy (impl->needs_display_region);
|
||||
impl->needs_display_region = NULL;
|
||||
}
|
||||
} else if (!impl->needs_display_region || gdk_quartz_get_use_cocoa_invalidation()) {
|
||||
gint nrects;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue