xmonad / xmonad-contrib

Contributed modules for xmonad
https://xmonad.org
BSD 3-Clause "New" or "Revised" License
579 stars 271 forks source link

Fix minimum widths for Shrink and Expand #858

Closed dcousens closed 6 months ago

dcousens commented 6 months ago

Description

I went to use the TwoPane layout while trying out xmonad, and immediately ran into the problem that Shrink and Expand were shrinking my windows into negative width, which broke alacritty.

To investigate the problem, I started reading the Layout.hs from xmonad/xmonad, and noticed that the Tall layout applies a min and max to the respective widths:

Applying this same approach to Shrink and Expand in the TwoPane layouts (tested in my own xmonad.hs) resolves this problem for me, but I am a beginner to xmonad and may be misunderstanding something. :blue_heart:

Checklist

slotThe commented 6 months ago

Thank you :tada: