X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbctextbox.C;h=4eef5347d7a300369861f6e41e199911ec6bad21;hb=d85ee0843fbbd79a0a7d2ffa0aac57968e24f6d7;hp=e5ac51c652993ded444722e15c5d7ed9b80602f9;hpb=6108eb1d03fc6d0175618e7a3f82924bbb650f9b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bctextbox.C b/cinelerra-5.1/guicast/bctextbox.C index e5ac51c6..4eef5347 100644 --- a/cinelerra-5.1/guicast/bctextbox.C +++ b/cinelerra-5.1/guicast/bctextbox.C @@ -750,7 +750,8 @@ int BC_TextBox::focus_out_event() int BC_TextBox::cursor_enter_event() { - if(top_level->event_win == win && enabled) + if( top_level->event_win == win && enabled && + !(top_level->get_resources()->textbox_focus_policy & CLICK_ACTIVATE) ) { tooltip_done = 0; if( !active ) { @@ -777,7 +778,7 @@ int BC_TextBox::cursor_leave_event() flash(1); } if( !suggestions_popup && - top_level->get_resources()->textbox_focus_policy == LEAVE_DEACTIVATE ) + !(top_level->get_resources()->textbox_focus_policy & CLICK_DEACTIVATE) ) deactivate(); return 0; } @@ -901,7 +902,7 @@ int BC_TextBox::button_press_event() if( suggestions_popup->button_press_event() ) return suggestions_popup->handle_event(); } - else if( top_level->get_resources()->textbox_focus_policy == CLICK_DEACTIVATE ) + else if( (top_level->get_resources()->textbox_focus_policy & CLICK_DEACTIVATE) ) deactivate(); }