mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
kwin/convergentwindows: Ignore case with undefined desktop
Otherwise the script keeps complaining in logs, if the window doesn't have a desktop we should ignore it.
This commit is contained in:
parent
4569296128
commit
57d29a7727
1 changed files with 3 additions and 0 deletions
|
|
@ -28,6 +28,9 @@ Loader {
|
|||
if (!window.fullScreen) {
|
||||
const output = window.output;
|
||||
const desktop = window.desktops[0]; // assume it's the first desktop that the window is on
|
||||
if (desktop === undefined) {
|
||||
return;
|
||||
}
|
||||
const maximizeRect = KWinComponents.Workspace.clientArea(KWinComponents.Workspace.MaximizeArea, output, desktop);
|
||||
|
||||
// set the window to the maximized size and position instantly, avoiding race condition
|
||||
|
|
|
|||
Loading…
Reference in a new issue