remove min-ratio setting and enforcement
- Drop minRatio parameter from container.adjustBoundary; guard is now newLeft/newRight <= 0 (i.e. only prevent a pane from inverting) - Remove _getMinRatio() helper and all call sites in windowManager.ts - Remove Window Sizing preferences group and min-window-size-percent spin button from prefs.ts - Remove min-window-size-percent GSettings key from schema XML
This commit is contained in:
@@ -58,10 +58,6 @@ export default class WindowManager implements IWindowManager {
|
||||
this._settings = settings;
|
||||
}
|
||||
|
||||
private _getMinRatio(): number {
|
||||
return this._settings.get_double('min-window-size-percent');
|
||||
}
|
||||
|
||||
public enable(): void {
|
||||
Logger.log("Starting Aerospike Window Manager");
|
||||
this.instantiateDisplaySignals();
|
||||
@@ -334,21 +330,20 @@ export default class WindowManager implements IWindowManager {
|
||||
if (itemIndex === -1) return;
|
||||
|
||||
const isHorizontal = container._orientation === 0;
|
||||
const minRatio = this._getMinRatio();
|
||||
|
||||
// E/S edge → boundary after the item; W/N edge → boundary before it.
|
||||
let adjusted = false;
|
||||
if (isHorizontal) {
|
||||
if (op === Meta.GrabOp.RESIZING_E || op === Meta.GrabOp.RESIZING_NE || op === Meta.GrabOp.RESIZING_SE) {
|
||||
adjusted = container.adjustBoundary(itemIndex, dx, minRatio);
|
||||
adjusted = container.adjustBoundary(itemIndex, dx);
|
||||
} else if (op === Meta.GrabOp.RESIZING_W || op === Meta.GrabOp.RESIZING_NW || op === Meta.GrabOp.RESIZING_SW) {
|
||||
adjusted = container.adjustBoundary(itemIndex - 1, dx, minRatio);
|
||||
adjusted = container.adjustBoundary(itemIndex - 1, dx);
|
||||
}
|
||||
} else {
|
||||
if (op === Meta.GrabOp.RESIZING_S || op === Meta.GrabOp.RESIZING_SE || op === Meta.GrabOp.RESIZING_SW) {
|
||||
adjusted = container.adjustBoundary(itemIndex, dy, minRatio);
|
||||
adjusted = container.adjustBoundary(itemIndex, dy);
|
||||
} else if (op === Meta.GrabOp.RESIZING_N || op === Meta.GrabOp.RESIZING_NE || op === Meta.GrabOp.RESIZING_NW) {
|
||||
adjusted = container.adjustBoundary(itemIndex - 1, dy, minRatio);
|
||||
adjusted = container.adjustBoundary(itemIndex - 1, dy);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user