[Firefox on Linux] Fixed detached window UI gets closed when its decoration is clicked (thanks richard for reporting).
This commit is contained in:
parent
4e03aa9eef
commit
d1e8ec339a
|
@ -69,7 +69,14 @@ addEventListener("unload", e => {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
addEventListener("blur", close);
|
if (browser.windows) {
|
||||||
|
const myWinId = (await browser.windows.getCurrent()).id;
|
||||||
|
browser.windows.onFocusChanged.addListener(windowId => {
|
||||||
|
if (windowId !== browser.windows.WINDOW_ID_NONE && myWinId !== windowId) {
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
tabId = tab.id;
|
tabId = tab.id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue