<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wlroots.git/include/util, branch master</title>
<subtitle>fork of wlroots with action binder support
</subtitle>
<id>https://git.vlhl.dev/navi/wayland/wlroots.git/atom?h=master</id>
<link rel='self' href='https://git.vlhl.dev/navi/wayland/wlroots.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/'/>
<updated>2023-11-22T19:03:00+00:00</updated>
<entry>
<title>xdg-toplevel: check that title provided actually is UTF-8</title>
<updated>2023-11-22T19:03:00+00:00</updated>
<author>
<name>Manuel Stoeckl</name>
<email>code@mstoeckl.com</email>
</author>
<published>2023-11-11T21:55:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=a3d22dbe972770f84ae71f7080fb7bc676c2ba7a'/>
<id>urn:sha1:a3d22dbe972770f84ae71f7080fb7bc676c2ba7a</id>
<content type='text'>
While the xdg-shell protocol requires this, it does not yet have
a dedicated error code for invalid titles; this commit makes
wlroots send a generic error instead.
</content>
</entry>
<entry>
<title>util/token: add docs</title>
<updated>2023-10-26T16:30:12+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-10-06T14:10:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=2410710a0f82b3e59b584d9c4f75b5f7758da6e4'/>
<id>urn:sha1:2410710a0f82b3e59b584d9c4f75b5f7758da6e4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>util/token: rename TOKEN_STRLEN to TOKEN_SIZE</title>
<updated>2023-10-26T16:30:12+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-10-06T14:08:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=55be74ad862d08d88efc2d07e8c66ce560bb8b8b'/>
<id>urn:sha1:55be74ad862d08d88efc2d07e8c66ce560bb8b8b</id>
<content type='text'>
TOKEN_STRLEN is not actually the strlen() of the token. It's the
size taken by the token included the final zero byte.

Change the name to make this clearer, and remove unnecessary +1's.
</content>
</entry>
<entry>
<title>util: add struct to track union of rectangles</title>
<updated>2023-10-05T11:45:32+00:00</updated>
<author>
<name>Manuel Stoeckl</name>
<email>code@mstoeckl.com</email>
</author>
<published>2023-10-01T20:25:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=d180f4d9b3fab72ff1bad881c91b004c905299c3'/>
<id>urn:sha1:d180f4d9b3fab72ff1bad881c91b004c905299c3</id>
<content type='text'>
The new struct rect_union is designed to make it easier to
efficiently accumulate a list of rectangles, and then operate
on an exact cover of their union.

Using rect_union, the times needed to added t rectangles, and then
compute their exact cover will be O(t), and something between Ω(t) and
O(t^2), depending on the rectangle arrangement. If one tries to do
the same by storing a pixman_region32_t and updating it with
pixman_region32_union_rect(), then total time needed would be between
Ω(t^2) and O(t^3), depending on the input. Without changing the public
API (data structure + rectangle ordering rules) for pixman_region32_t,
it is impossible to improve its worst case time.
</content>
</entry>
<entry>
<title>Add some missing includes/declarations</title>
<updated>2023-06-05T21:06:19+00:00</updated>
<author>
<name>Kirill Primak</name>
<email>vyivel@eclair.cafe</email>
</author>
<published>2023-06-05T20:45:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=3dc646ea889084cd7aa980f38124b5df548cf10d'/>
<id>urn:sha1:3dc646ea889084cd7aa980f38124b5df548cf10d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>util: add timespec_to_nsec</title>
<updated>2023-06-05T19:50:07+00:00</updated>
<author>
<name>Rose Hudson</name>
<email>rose@krx.sh</email>
</author>
<published>2023-06-05T15:26:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=bd834fe8d1b9b380391f68c89dcdf35bdcaf64c0'/>
<id>urn:sha1:bd834fe8d1b9b380391f68c89dcdf35bdcaf64c0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>util/env: make env_parse_switch() return a size_t</title>
<updated>2022-12-06T15:14:18+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2022-12-06T10:43:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=d72b4409ce05e5604685fb8468068c8057315b2d'/>
<id>urn:sha1:d72b4409ce05e5604685fb8468068c8057315b2d</id>
<content type='text'>
This function is guaranteed to never return a negative value.

This is important because we use arr[env_parse_switch(...)] in a
few places.
</content>
</entry>
<entry>
<title>util/env: add docs</title>
<updated>2022-12-06T15:14:16+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2022-12-06T10:42:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=dc09585d14b53f186d4be78126824faf27da55b8'/>
<id>urn:sha1:dc09585d14b53f186d4be78126824faf27da55b8</id>
<content type='text'>
I always forget what env_parse_switch() does on error.
</content>
</entry>
<entry>
<title>util/time: use int64_t return value for get_current_time_msec()</title>
<updated>2022-11-25T16:15:29+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2022-11-23T14:56:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=769cabbadf295fbe26cd2c3eb6efd5233c4d14e8'/>
<id>urn:sha1:769cabbadf295fbe26cd2c3eb6efd5233c4d14e8</id>
<content type='text'>
0xFFFFFFFF milliseconds is 4,294,967,295 ms so about 50 days.
A little bit too close for comfort.

Use int64_t instead of uint64_t to avoid C's implicit conversion
footguns in computations.
</content>
</entry>
<entry>
<title>util/set: overhaul</title>
<updated>2022-08-29T13:48:42+00:00</updated>
<author>
<name>Kirill Primak</name>
<email>vyivel@eclair.cafe</email>
</author>
<published>2022-08-19T18:20:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wlroots.git/commit/?id=7333a4602a333c8710ada6f8a16435745aa4a557'/>
<id>urn:sha1:7333a4602a333c8710ada6f8a16435745aa4a557</id>
<content type='text'>
</content>
</entry>
</feed>
