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) {
|
void NativeWindowViews::Focus(bool focus) {
|
||||||
|
// For hidden window focus() should do nothing.
|
||||||
|
if (!IsVisible())
|
||||||
|
return;
|
||||||
|
|
||||||
if (focus) {
|
if (focus) {
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
window_->Activate();
|
window_->Activate();
|
||||||
|
|
Loading…
Reference in a new issue