fix: properly maximize windows via window decoration buttons

Apparently pressing the maximize button doesn't actually force the
window into any specific geometry. This resulted in windows staying in their
tiled geometry while all other windows would be rearranged as if the
maximized window would be floating.

This fix makes the maximized window fill the entire working area.
This commit is contained in:
Fabian Preuß 2021-11-23 17:19:35 +01:00 committed by Mikhail Zolotukhin
parent cc27485d18
commit 3d9c874439

View File

@ -331,7 +331,11 @@ export class EngineWindowImpl implements EngineWindow {
this.log.log(["Window#commit", { state: WindowState[state] }]);
switch (state) {
case WindowState.NativeMaximized:
this.window.commit(undefined, undefined, false);
this.window.commit(
this.window.surface.workingArea,
undefined,
undefined
);
break;
case WindowState.NativeFullscreen: