mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-05 03:46:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user