Skip to content

Commit

Permalink
Fix typo that prevents closing of floating windows
Browse files Browse the repository at this point in the history
  • Loading branch information
e9gille committed Sep 26, 2023
1 parent 59a25b4 commit f7f5f0c
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 f7f5f0c

Please sign in to comment.