mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-11-03 19:41:22 +03:00
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:
parent
cc27485d18
commit
3d9c874439
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user