summaryrefslogtreecommitdiff
path: root/drw.o%25252525252525252525252525252525253fid%25252525252525252525252525252525...
diff options
context:
space:
mode:
authorStein <bakkeby@gmail.com>2022-08-15 14:31:22 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-08-17 13:33:57 +0200
commit5799dd1fca6576b662d299e210cd5933b29d502d (patch)
treef8255ee824d846e6d7ed7da93126435b00c7929c /drw.o%25252525252525252525252525252525253fid%25252525252525252525252525252525253da24510be84e22c98a2e4fca81c5cd2fa91207281%252525252525252525252525252525253fid%252525252525252525252525252525253da24510be84e22c98a2e4fca81c5cd2fa91207281&id2%252525252525252525252525252525253d643dda856b7c02edb36079a267b4647da81ab6e4%2525252525252525252525252525253fid%2525252525252525252525252525253da24510be84e22c98a2e4fca81c5cd2fa91207281&id2%2525252525252525252525252525253d643dda856b7c02edb36079a267b4647da81ab6e4%25252525252525252525252525253fid%25252525252525252525252525253da24510be84e22c98a2e4fca81c5cd2fa91207281%252525252525252525252525253fid%252525252525252525252525253d643dda856b7c02edb36079a267b4647da81ab6e4%2525252525252525252525253fid%2525252525252525252525253d643dda856b7c02edb36079a267b4647da81ab6e4%25252525252525252525253fid%25252525252525252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8%252525252525252525253fid%252525252525252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8&id2%252525252525252525253d2e5612566918898a7edf5b526162e644863f30d0%2525252525252525253fid%2525252525252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8&id2%2525252525252525253d2e5612566918898a7edf5b526162e644863f30d0%25252525252525253fid%25252525252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8&id2%25252525252525253d2e5612566918898a7edf5b526162e644863f30d0%252525252525253fid%252525252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8%2525252525253fid%2525252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8&id2%2525252525253d2e5612566918898a7edf5b526162e644863f30d0%25252525253fid%25252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8%252525253fid%252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8%2525253fid%2525253d2e5612566918898a7edf5b526162e644863f30d0%25253fid%25253d04c2d3bf025044724b4d06d782067fd58d36b498%253fid%253d04c2d3bf025044724b4d06d782067fd58d36b498%3fid%3d00cfdc0aa7a75aae42303cebda46ffaa95803b27?id=5799dd1fca6576b662d299e210cd5933b29d502d
parent44adafe0069e73aa03a3829d7bb39591cd8b3f1d (diff)
Remove blw variable in favour of calculating the value when needed
The purpose and reasoning behind the bar layout width (blw) variable in dwm the way it is today may not be immediately obvious. The use of the variable makes more sense when looking at commit 2ce37bc from 2009 where blw was initialised in the setup function and it represented the maximum of all available layout symbols. for(blw = i = 0; LENGTH(layouts) > 1 && i < LENGTH(layouts); i++) { w = TEXTW(layouts[i].symbol); blw = MAX(blw, w); } As such the layout symbol back then was fixed in size and both drawbar and buttonpress depended on this variable. The the way the blw variable is set today in drawbar means that it merely caches the size of the layout symbol for the last bar drawn. While unlikely to happen in practice it is possible that the last bar drawn is not that of the currently selected monitor, which can result in misaligned button clicks if there is a difference in layout symbol width between monitors.
Diffstat (limited to 'drw.o%25252525252525252525252525252525253fid%25252525252525252525252525252525253da24510be84e22c98a2e4fca81c5cd2fa91207281%252525252525252525252525252525253fid%252525252525252525252525252525253da24510be84e22c98a2e4fca81c5cd2fa91207281&id2%252525252525252525252525252525253d643dda856b7c02edb36079a267b4647da81ab6e4%2525252525252525252525252525253fid%2525252525252525252525252525253da24510be84e22c98a2e4fca81c5cd2fa91207281&id2%2525252525252525252525252525253d643dda856b7c02edb36079a267b4647da81ab6e4%25252525252525252525252525253fid%25252525252525252525252525253da24510be84e22c98a2e4fca81c5cd2fa91207281%252525252525252525252525253fid%252525252525252525252525253d643dda856b7c02edb36079a267b4647da81ab6e4%2525252525252525252525253fid%2525252525252525252525253d643dda856b7c02edb36079a267b4647da81ab6e4%25252525252525252525253fid%25252525252525252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8%252525252525252525253fid%252525252525252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8&id2%252525252525252525253d2e5612566918898a7edf5b526162e644863f30d0%2525252525252525253fid%2525252525252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8&id2%2525252525252525253d2e5612566918898a7edf5b526162e644863f30d0%25252525252525253fid%25252525252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8&id2%25252525252525253d2e5612566918898a7edf5b526162e644863f30d0%252525252525253fid%252525252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8%2525252525253fid%2525252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8&id2%2525252525253d2e5612566918898a7edf5b526162e644863f30d0%25252525253fid%25252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8%252525253fid%252525253deb1619b7f22da24f6b5c5f6806428fda67214bb8%2525253fid%2525253d2e5612566918898a7edf5b526162e644863f30d0%25253fid%25253d04c2d3bf025044724b4d06d782067fd58d36b498%253fid%253d04c2d3bf025044724b4d06d782067fd58d36b498%3fid%3d00cfdc0aa7a75aae42303cebda46ffaa95803b27?id=5799dd1fca6576b662d299e210cd5933b29d502d')
0 files changed, 0 insertions, 0 deletions