X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fvdevicex11.C;h=8cd64fe67f9ce485e7fe6b704c5c593daac2c5da;hp=c43f1c04de0374e81f8445278d4a6b1062fd8c4c;hb=017728ea68874203d45b3f16050626d540608e35;hpb=d72d54c0e9d75486bb003e256630c77f77ce6368 diff --git a/cinelerra-5.1/cinelerra/vdevicex11.C b/cinelerra-5.1/cinelerra/vdevicex11.C index c43f1c04..8cd64fe6 100644 --- a/cinelerra-5.1/cinelerra/vdevicex11.C +++ b/cinelerra-5.1/cinelerra/vdevicex11.C @@ -144,8 +144,11 @@ int VDeviceX11::close_all() if( output_frame ) { output->update_refresh(device, output_frame); // if the last frame is good, don't draw over it - if( !video_on || output->need_overlays() ) + if( !video_on || output->need_overlays() ) { + output->unlock_canvas(); output->draw_refresh(1); + output->lock_canvas("VDeviceX11::close_all 2"); + } } }