BrowserWindow.show() should not focus window, fixes #609.
This commit is contained in:
parent
add4e3c6f5
commit
1199224086
2 changed files with 6 additions and 1 deletions
|
@ -226,7 +226,7 @@ bool NativeWindowViews::IsFocused() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindowViews::Show() {
|
void NativeWindowViews::Show() {
|
||||||
window_->Show();
|
window_->ShowInactive();
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindowViews::Hide() {
|
void NativeWindowViews::Hide() {
|
||||||
|
|
|
@ -56,6 +56,11 @@ describe 'browser-window module', ->
|
||||||
done()
|
done()
|
||||||
w.loadUrl 'about:blank'
|
w.loadUrl 'about:blank'
|
||||||
|
|
||||||
|
describe 'BrowserWindow.show()', ->
|
||||||
|
it 'should not focus window', ->
|
||||||
|
w.show()
|
||||||
|
assert !w.isFocused()
|
||||||
|
|
||||||
describe 'BrowserWindow.focus()', ->
|
describe 'BrowserWindow.focus()', ->
|
||||||
it 'does not make the window become visible', ->
|
it 'does not make the window become visible', ->
|
||||||
assert.equal w.isVisible(), false
|
assert.equal w.isVisible(), false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue