For hidden window focus() should do nothing
This commit is contained in:
parent
de502d8012
commit
41b8dda071
1 changed files with 4 additions and 0 deletions
|
@ -335,6 +335,10 @@ void NativeWindowViews::CloseImmediately() {
|
|||
}
|
||||
|
||||
void NativeWindowViews::Focus(bool focus) {
|
||||
// For hidden window focus() should do nothing.
|
||||
if (!IsVisible())
|
||||
return;
|
||||
|
||||
if (focus) {
|
||||
#if defined(OS_WIN)
|
||||
window_->Activate();
|
||||
|
|
Loading…
Reference in a new issue