Skip to content

Commit

Permalink
fix cairo drawing error when another frame closes
Browse files Browse the repository at this point in the history
If you have two CFrames open (for example two instances of the same
plugin), and close one of them, the drawing in the other one starts to
fail, with "the target surface has been finished" messages. The fix is
simple: just remove the call to cairo_device_finish.
cairo_device_destroy will call cairo_device_finish when it has decreased
the refcount to zero.
  • Loading branch information
andreas56 authored and scheffle committed Dec 7, 2021
1 parent 436be59 commit 7de1d70
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion vstgui/lib/platform/linux/x11frame.cpp
Expand Up @@ -121,7 +121,6 @@ struct DrawHandler

~DrawHandler ()
{
cairo_device_finish (device);
cairo_device_destroy (device);
}

Expand Down

0 comments on commit 7de1d70

Please sign in to comment.