summaryrefslogtreecommitdiff
path: root/dwm.c%25252525252525252525252525252525253fid%25252525252525252525252525252525...
diff options
context:
space:
mode:
authorbakkeby <bakkeby@gmail.com>2020-04-23 09:50:54 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-04-25 13:31:02 +0200
commitf09418bbb6651ab4c299cfefbe1d18de401f630e (patch)
tree57e74e66aa0f62ccd59950d383e995835682c0ea /dwm.c%25252525252525252525252525252525253fid%25252525252525252525252525252525253d138b405f0c8aa24d8a040cc1a1cf6e3eb5a0ebc7%252525252525252525252525252525253fid%252525252525252525252525252525253d67d76bdc68102df976177de351f65329d8683064%2525252525252525252525252525253fid%2525252525252525252525252525253d67d76bdc68102df976177de351f65329d8683064%25252525252525252525252525253fid%25252525252525252525252525253d67d76bdc68102df976177de351f65329d8683064&id2%25252525252525252525252525253d61bb8b2241d4db08bea4261c82e27cd9797099e7%252525252525252525252525253fid%252525252525252525252525253d67d76bdc68102df976177de351f65329d8683064%2525252525252525252525253fid%2525252525252525252525253d67d76bdc68102df976177de351f65329d8683064%25252525252525252525253fid%25252525252525252525253d67d76bdc68102df976177de351f65329d8683064%252525252525252525253fid%252525252525252525253d67d76bdc68102df976177de351f65329d8683064%2525252525252525253fid%2525252525252525253d67d76bdc68102df976177de351f65329d8683064%25252525252525253fid%25252525252525253d61bb8b2241d4db08bea4261c82e27cd9797099e7%252525252525253fid%252525252525253dbb2e7222baeec7776930354d0e9f210cc2aaad5f%2525252525253fid%2525252525253dbb2e7222baeec7776930354d0e9f210cc2aaad5f%25252525253fid%25252525253df04cac6d6e39cd9e3fc4fae526e3d1e8df5e34b2%252525253fid%252525253df04cac6d6e39cd9e3fc4fae526e3d1e8df5e34b2%2525253fid%2525253df09418bbb6651ab4c299cfefbe1d18de401f630e%25253fid%25253df09418bbb6651ab4c299cfefbe1d18de401f630e%253fid%253df09418bbb6651ab4c299cfefbe1d18de401f630e%3fid%3df09418bbb6651ab4c299cfefbe1d18de401f630e&id2%3ded3ab6b4fceded0e9f2d22372df49a2bbd58de66?id=f09418bbb6651ab4c299cfefbe1d18de401f630e
parented3ab6b4fceded0e9f2d22372df49a2bbd58de66 (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 'dwm.c%25252525252525252525252525252525253fid%25252525252525252525252525252525253d138b405f0c8aa24d8a040cc1a1cf6e3eb5a0ebc7%252525252525252525252525252525253fid%252525252525252525252525252525253d67d76bdc68102df976177de351f65329d8683064%2525252525252525252525252525253fid%2525252525252525252525252525253d67d76bdc68102df976177de351f65329d8683064%25252525252525252525252525253fid%25252525252525252525252525253d67d76bdc68102df976177de351f65329d8683064&id2%25252525252525252525252525253d61bb8b2241d4db08bea4261c82e27cd9797099e7%252525252525252525252525253fid%252525252525252525252525253d67d76bdc68102df976177de351f65329d8683064%2525252525252525252525253fid%2525252525252525252525253d67d76bdc68102df976177de351f65329d8683064%25252525252525252525253fid%25252525252525252525253d67d76bdc68102df976177de351f65329d8683064%252525252525252525253fid%252525252525252525253d67d76bdc68102df976177de351f65329d8683064%2525252525252525253fid%2525252525252525253d67d76bdc68102df976177de351f65329d8683064%25252525252525253fid%25252525252525253d61bb8b2241d4db08bea4261c82e27cd9797099e7%252525252525253fid%252525252525253dbb2e7222baeec7776930354d0e9f210cc2aaad5f%2525252525253fid%2525252525253dbb2e7222baeec7776930354d0e9f210cc2aaad5f%25252525253fid%25252525253df04cac6d6e39cd9e3fc4fae526e3d1e8df5e34b2%252525253fid%252525253df04cac6d6e39cd9e3fc4fae526e3d1e8df5e34b2%2525253fid%2525253df09418bbb6651ab4c299cfefbe1d18de401f630e%25253fid%25253df09418bbb6651ab4c299cfefbe1d18de401f630e%253fid%253df09418bbb6651ab4c299cfefbe1d18de401f630e%3fid%3df09418bbb6651ab4c299cfefbe1d18de401f630e&id2%3ded3ab6b4fceded0e9f2d22372df49a2bbd58de66?id=f09418bbb6651ab4c299cfefbe1d18de401f630e')
0 files changed, 0 insertions, 0 deletions