Skip to content

Commit

Permalink
Fix resize event not firing correctly on show/hide when window maximized
Browse files Browse the repository at this point in the history
  • Loading branch information
icewolfz committed Apr 15, 2024
1 parent d5ca633 commit a6d5334
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,13 +501,14 @@ function createWindow(options) {
});

window.on('resize', () => {
if (window.isMaximized() || window.isFullScreen()) return;
//Issues with linux KDE 6 on javascript resize, so lets send an IPC version just in case
if(window.webContents)
window.webContents.send('resize');
const active = getActiveClient(window);
if (active)
active.view.webContents.send('resize');
//on lt store state changes if not full screen
if (window.isMaximized() || window.isFullScreen()) return;
states[options.file] = saveWindowState(window, stateMap.get(window) || states[options.file]);
stateMap.set(window, states[options.file]);
});
Expand Down

0 comments on commit a6d5334

Please sign in to comment.