From: Good Guy Date: Fri, 24 Mar 2017 18:48:27 +0000 (-0600) Subject: listbox activate fix X-Git-Url: https://cinelerra-gg.org/git/?a=commitdiff_plain;h=5f167e2ecbd68f818d1655ae02ae98e978fdd254;p=goodguy%2Fhistory.git listbox activate fix --- 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,