ibabushkin / gabelstaplerwm

A window manager in Rust, using XCB
BSD 3-Clause "New" or "Revised" License
91 stars 8 forks source link

Crashes in debug build on a huge amount of windows in a spiral layout #5

Closed ibabushkin closed 8 years ago

ibabushkin commented 8 years ago

The division by two, which the layout performs on window sizes, underflows when windows get microscopically small. This is pretty bad because debug builds will crash, and release builds will fuck up the visuals.

ibabushkin commented 8 years ago

Fixed. Now the Spiral layout's struct has a member denoting the maximum amount of clients - this should make such constellations unlikely enough to not be handled explicitly.