mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 09:06:03 +00:00
fixed window re-focusing on linux
This commit is contained in:
@@ -75,7 +75,7 @@ export class Application {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onGlobalHotkey (): void {
|
onGlobalHotkey (): void {
|
||||||
if (this.windows.some(x => x.isFocused())) {
|
if (this.windows.some(x => x.isFocused() && x.isVisible())) {
|
||||||
for (const window of this.windows) {
|
for (const window of this.windows) {
|
||||||
window.hide()
|
window.hide()
|
||||||
}
|
}
|
||||||
|
@@ -190,6 +190,10 @@ export class Window {
|
|||||||
return this.window.isFocused()
|
return this.window.isFocused()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isVisible (): boolean {
|
||||||
|
return this.window.isVisible()
|
||||||
|
}
|
||||||
|
|
||||||
hide (): void {
|
hide (): void {
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
// Lose focus
|
// Lose focus
|
||||||
|
Reference in New Issue
Block a user