X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fzwindowgui.C;h=62bcb93e17e58d76747ced7436a3b137089feb7f;hp=a52bad967a17fe266ad96323f6063902622396e9;hb=b78b166faf60a1c7357f990b1e2fb0e70be29fee;hpb=0e16112661802284c0d2c9eb8d1df84141125e91 diff --git a/cinelerra-5.1/cinelerra/zwindowgui.C b/cinelerra-5.1/cinelerra/zwindowgui.C index a52bad96..62bcb93e 100644 --- a/cinelerra-5.1/cinelerra/zwindowgui.C +++ b/cinelerra-5.1/cinelerra/zwindowgui.C @@ -96,22 +96,22 @@ int ZWindowGUI::keypress_event() close_event(); return 1; } - unlock_window(); int result = 1; switch( key ) { case 'f': - canvas->use_fullscreen(canvas->get_fullscreen() ? 0 : 1); + canvas->set_fullscreen(canvas->get_fullscreen() ? 0 : 1); break; case ESC: - canvas->use_fullscreen(0); + canvas->set_fullscreen(0); break; default: + unlock_window(); mwindow->gui->lock_window("ZWindowGUI::keypress_event"); result = mwindow->gui->mbuttons->transport->do_keypress(key); mwindow->gui->unlock_window(); + lock_window("ZWindowGUI::keypress_event 1"); } - lock_window("ZWindowGUI::keypress_event 1"); return result; }