aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2022-04-18 18:09:40 (GMT)
committerMathias Gumz <mg@2hoch5.com>2022-04-18 18:09:40 (GMT)
commitc49aa33171e53b5a182a497ea1e5cf29e4a2b831 (patch)
tree71887609d7e691f630c5dc748e80007c0f3d4148 /src/fluxbox.cc
parent1d19662c8975e881b4fa6465a8305be3ea5282ee (diff)
downloadfluxbox-c49aa33171e53b5a182a497ea1e5cf29e4a2b831.zip
fluxbox-c49aa33171e53b5a182a497ea1e5cf29e4a2b831.tar.bz2
Fix encoding of _NET_DESKTOP_NAMES
This commit fixes the encoding of _NET_DESKTOP_NAMES to match the specification[1]: … The names of all virtual desktops. This is a list of NULL-terminated strings in UTF-8 encoding … We use Xutf8TextListToTextProperty to transform a list of strings (NULL-terminated) into one XTextProperty which is lacking the last NULL-Termination … at least that is what observation tells us and what is written in the documentation of that function[2]: … A final terminating null byte is stored at the end of the value field of text_prop_return but is not included in the nitems member. As a result, the way *fluxbox* is storing desktop names and the way other WMs are storing them and how other tools like pagers etc are expecting the content to be formated is slightly off. This commit addresses that issue by adding one more "artificial" desktop name and thus producing the desired content for _NET_DESKTOP_NAMES. [1]: https://specifications.freedesktop.org/wm-spec/wm-spec-1.4.html#idm46439038971488 [2]: https://www.x.org/releases/X11R7.5/doc/man/man3/Xutf8TextListToTextProperty.3.html
Diffstat (limited to 'src/fluxbox.cc')
0 files changed, 0 insertions, 0 deletions