mirror of
https://github.com/zen-browser/desktop.git
synced 2026-05-27 15:25:09 +00:00
gh-13761: Fixed closing a split view selecting it on other windows (gh-13790)
This commit is contained in:
@@ -1657,7 +1657,9 @@ class nsZenWindowSync {
|
||||
this.#runOnAllWindows(window, win => {
|
||||
const targetTab = this.getItemFromWindow(win, tab.id);
|
||||
if (targetTab && win.gZenViewSplitter) {
|
||||
win.gZenViewSplitter.removeTabFromGroup(targetTab);
|
||||
win.gZenViewSplitter.removeTabFromGroup(targetTab, undefined, {
|
||||
changeTab: false,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2294,7 +2294,7 @@ class nsZenViewSplitter extends nsZenDOMOperatedFeature {
|
||||
// Unsplit the tab and exit from the drag view
|
||||
this.dropZone?.removeAttribute("enabled");
|
||||
this.disableTabRearrangeView(event);
|
||||
this.removeTabFromSplit(browserContainer);
|
||||
this.removeTabFromSplit(event, browserContainer);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user