Skip to content

Commit

Permalink
Merge pull request #1159 from Dyalog/floating_window_close
Browse files Browse the repository at this point in the history
Fix typo that prevents closing of floating windows
  • Loading branch information
e9gille authored Sep 26, 2023
2 parents 59a25b4 + f7f5f0c commit 5f3a611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipc.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
hasFocus() { return this === D.ide.focusedWin; },
close() {
if (this === D.pwins[0] && D.prf.editWinsRememberPos()) {
const b = D.el.BrowserWindow.fromId(this.bwId).getClientBounds();
const b = D.el.BrowserWindow.fromId(this.bwId).getContentBounds();
D.prf.editWins(Object.assign(D.prf.editWins(), b));
}
this.emit('close');
Expand Down

0 comments on commit 5f3a611

Please sign in to comment.