free-resize: clamp window height to workarea bounds

Allows to sloppily super+right-button-drag a window to maximized height
This commit is contained in:
Ole Jørgen Brønner
2019-10-15 20:33:10 +02:00
parent 329560b612
commit dc125d6b2c
+1 -1
View File
@@ -2646,7 +2646,7 @@ function allocateDefault(column, availableHeight, selectedWindow) {
if (shouldMaximizeSingleWindow(column[0])) {
return [availableHeight];
} else {
return [column[0].get_frame_rect().height]
return [Math.min(availableHeight, column[0].get_frame_rect().height)];
}
} else {
// Distribute available height amongst non-selected windows in proportion to their existing height