FIX:search dialog cannot open
reason:search_line window modified by darkmode-commit Change-Id: I1a6c58362b2d1eff506b62a97d908b95dc591ff9
This commit is contained in:
parent
b65d47b544
commit
56a98390f9
|
@ -639,10 +639,9 @@ void SearchDialog::OnDismiss() { }
|
||||||
void SearchDialog::Dismiss()
|
void SearchDialog::Dismiss()
|
||||||
{
|
{
|
||||||
auto pos = wxGetMousePosition();
|
auto pos = wxGetMousePosition();
|
||||||
|
auto focus_window = wxWindow::FindFocus();
|
||||||
if (!search_line->HasFocus() && !this->HasFocus()) {
|
if (!focus_window)
|
||||||
Die();
|
Die();
|
||||||
}
|
|
||||||
else if (!m_event_tag->GetScreenRect().Contains(pos) && !this->GetScreenRect().Contains(pos) && !m_search_item_tag->GetScreenRect().Contains(pos)) {
|
else if (!m_event_tag->GetScreenRect().Contains(pos) && !this->GetScreenRect().Contains(pos) && !m_search_item_tag->GetScreenRect().Contains(pos)) {
|
||||||
Die();
|
Die();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue