From 5f167e2ecbd68f818d1655ae02ae98e978fdd254 Mon Sep 17 00:00:00 2001 From: Good Guy Date: Fri, 24 Mar 2017 12:48:27 -0600 Subject: [PATCH] listbox activate fix --- cinelerra-5.1/guicast/bclistbox.C | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cinelerra-5.1/guicast/bclistbox.C b/cinelerra-5.1/guicast/bclistbox.C index 7a521a31..88d4b094 100644 --- a/cinelerra-5.1/guicast/bclistbox.C +++ b/cinelerra-5.1/guicast/bclistbox.C @@ -3979,6 +3979,7 @@ int BC_ListBox::deactivate() int BC_ListBox::activate(int take_focus) { if( active ) return 0; + active = 1; if( take_focus ) set_active_subwindow(this); button_releases = 0; @@ -3997,11 +3998,11 @@ int BC_ListBox::activate(int take_focus) int BC_ListBox::activate(int x, int y, int w, int h) { - if( active || !is_popup || gui ) return 0; + if( !is_popup || gui ) return 0; + active = 1; if(w != -1) popup_w = w; if(h != -1) popup_h = h; reset_query(); - active = 1; if( y + popup_h > top_level->get_root_h(0) ) y -= get_h() + popup_h; add_subwindow(gui = new BC_Popup(this, -- 2.26.2