diff options
author | bakkeby | 2020-04-23 09:50:54 +0200 |
---|---|---|
committer | Hiltjo Posthuma | 2020-04-25 13:31:02 +0200 |
commit | f09418bbb6651ab4c299cfefbe1d18de401f630e (patch) | |
tree | 57e74e66aa0f62ccd59950d383e995835682c0ea /patches/dwm-pango-20230520-e81f17d.diff | |
parent | ed3ab6b4fceded0e9f2d22372df49a2bbd58de66 (diff) |
dwm crashes when opening 50+ clients (tile layout)
Many users new to dwm find themselves caught out by being kicked out to the login manager (dwm crashing) when they open 50+ clients for demonstration purposes. The number of clients reported varies depending on the resolution of the monitor.
The cause of this is due to how the default tile layout calculates the height of the next client based on the position of the previous client. Because clients have a minimum size the (ty) position can exceed that of the window height, resulting in (m->wh - ty) becoming negative. The negative height stored as an unsigned int results in a very large height ultimately resulting in dwm crashing.
This patch adds safeguards to prevent the ty and my positions from exceeding that of the window height.
Diffstat (limited to 'patches/dwm-pango-20230520-e81f17d.diff')
0 files changed, 0 insertions, 0 deletions