<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nsxiv/window.c, branch master</title>
<subtitle>Nsxiv image view custom build
</subtitle>
<id>https://git.krolyxon.com/nsxiv/atom?h=master</id>
<link rel='self' href='https://git.krolyxon.com/nsxiv/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/'/>
<updated>2023-05-19T13:17:02Z</updated>
<entry>
<title>fix: memory leak in `win_draw_bar` (#444)</title>
<updated>2023-05-19T13:17:02Z</updated>
<author>
<name>blk_750</name>
<email>blk_750@noreply.codeberg.org</email>
</author>
<published>2023-05-19T13:17:02Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=824b2cb8858b19ace3e26a0f54cf9dd740be9b59'/>
<id>urn:sha1:824b2cb8858b19ace3e26a0f54cf9dd740be9b59</id>
<content type='text'>
Closes: https://codeberg.org/nsxiv/nsxiv/issues/410
Co-authored-by: blk_750 &lt;blk_750@protonmail.com&gt;
Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/444
Reviewed-by: NRK &lt;nrk@disroot.org&gt;
Co-authored-by: blk_750 &lt;blk_750@noreply.codeberg.org&gt;
Co-committed-by: blk_750 &lt;blk_750@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>apply clang-format</title>
<updated>2023-03-11T12:37:04Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2023-02-10T05:35:53Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=f2f4903de4bd3ce06c03dd66f0c9a7dda97a3550'/>
<id>urn:sha1:f2f4903de4bd3ce06c03dd66f0c9a7dda97a3550</id>
<content type='text'>
minus the bogus changes

Co-authored-by: Berke Kocaoğlu &lt;berke.kocaoglu@metu.edu.tr&gt;
</content>
</entry>
<entry>
<title>make some changes prepping for clang-format</title>
<updated>2023-03-11T12:36:26Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-07-02T15:06:24Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=2434e83807360bfe43e3c404be12438f00a894ab'/>
<id>urn:sha1:2434e83807360bfe43e3c404be12438f00a894ab</id>
<content type='text'>
Co-authored-by: Berke Kocaoğlu &lt;berke.kocaoglu@metu.edu.tr&gt;
</content>
</entry>
<entry>
<title>update copyright year</title>
<updated>2023-01-28T10:29:36Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2023-01-15T09:26:46Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=a051ad210dc0571ec581c89171dc25b9ab35f4be'/>
<id>urn:sha1:a051ad210dc0571ec581c89171dc25b9ab35f4be</id>
<content type='text'>
</content>
</entry>
<entry>
<title>use assertions instead of ignoring bogus arguments (#406)</title>
<updated>2023-01-28T10:27:40Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2023-01-28T10:27:40Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=01f3cf2e4778940a82001e48cfeec767841f52c4'/>
<id>urn:sha1:01f3cf2e4778940a82001e48cfeec767841f52c4</id>
<content type='text'>
instead of silently ignoring bogus arguments (i.e programming errors),
which can make debugging harder, it's better to assert them so that they
get caught faster in debug builds.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/406
Reviewed-by: explosion-mental &lt;explosion-mental@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>code-style: misc changes (#374)</title>
<updated>2022-10-19T12:46:22Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-10-19T12:46:22Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=b11384a6942cdf3c6b6f55e0dcc0a438eff7158a'/>
<id>urn:sha1:b11384a6942cdf3c6b6f55e0dcc0a438eff7158a</id>
<content type='text'>
* ensure static variables comes after non-static ones
* remove depreciated DATA32 type
* prefer `sizeof(expression)` over `sizeof(Type)`.
* silence a -Wsign warning
* {gif,webp} loader: use a pointer to reduce code-noise
* gif loader: allocate in one place

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/374
Reviewed-by: TAAPArthur &lt;taaparthur@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>code-style: various cleanups (#356)</title>
<updated>2022-08-16T08:53:05Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-08-16T08:53:05Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=6578e6eb6533a6651bd88ecae7720aced88c8c2f'/>
<id>urn:sha1:6578e6eb6533a6651bd88ecae7720aced88c8c2f</id>
<content type='text'>
* run_key_handler: make the logic easier to follow
* remove timeout_t
  the typedef is not needed. inline the declaration similar to the other
  static structs.
* simplify estrdup
  reuse emalloc, instead of calling malloc and null-checking.
* win_clear: initialize `e` right away
* process_bindings: explicitly check against NULL
  most pointer checks in the codebase do explicit check.
* use a named constant instead of magic number
  also changes the padding from 3 to 4 bytes according to [0]. but i
  couldn't find any situtation where this mattered, so perhaps the current
  padding is enough. but doesn't hurt adding one more byte.

[0]: https://nullprogram.com/blog/2017/10/06/

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/356
Reviewed-by: explosion-mental &lt;explosion-mental@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>fix: -Wsign-compare warnings (#336)</title>
<updated>2022-07-15T20:46:23Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-07-15T20:46:23Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=c131b1ed83da70fd739aff90ea3e8e829549ff43'/>
<id>urn:sha1:c131b1ed83da70fd739aff90ea3e8e829549ff43</id>
<content type='text'>
mixing signed and unsigned types in comparison can end up having
unintended results. for example:

	if (-1 &lt; 1U)
		printf("true\n");
	else
		printf("false\n");

previously we silenced these warnings, instead just fix them properly
via necessary casting, and in cases where the value cannot be negative
(e.g width/height members) make them unsigned.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/336
Reviewed-by: explosion-mental &lt;explosion-mental@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>reject empty xresources (#340)</title>
<updated>2022-07-05T09:24:53Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-07-05T09:24:53Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=5cab2fb52520e6a24012351b936ebb9162494666'/>
<id>urn:sha1:5cab2fb52520e6a24012351b936ebb9162494666</id>
<content type='text'>
currently, in case of an empty xresources we would fail to init:

	nsxiv: Error allocating color ''

instead, just reject empty value and use the fallback.

Closes: https://codeberg.org/nsxiv/nsxiv/issues/339

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/340
Reviewed-by: Berke Kocaoğlu &lt;berke.kocaoglu@metu.edu.tr&gt;
Co-authored-by: NRK &lt;nrk@disroot.org&gt;
Co-committed-by: NRK &lt;nrk@disroot.org&gt;
</content>
</entry>
<entry>
<title>check for utf8_decode errors (#327)</title>
<updated>2022-07-03T10:45:50Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-07-03T10:45:50Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=51d4c8dd4f793114cbc520f2a8465981bd1d4eaa'/>
<id>urn:sha1:51d4c8dd4f793114cbc520f2a8465981bd1d4eaa</id>
<content type='text'>
utf8_decode() may return an errors, in which case the returned codepoint
might be garbage. the issue can be tested by adding the following to
`image-info` which produces invalid utf8 sequences:

	base64 -d &lt;&lt; EOF
	9JCAgPSQgIH0kICC9JCAg/SQgIT0kICF9JCAhvSQgIf0kICI9JCAifSQgIr0kICL9JCAjPSQgI30
	kICO9JCAj/SQgJD0kICR9JCAkvSQgJP0kICU9JCAlfSQgJb0kICX9JCAmPSQgJn0kICa9JCAm/SQ
	gJz0kICd9JCAnvSQgJ8=
	EOF

on my system, this leads to the statusbar being filled with empty boxes.

check for returned error and skip the iteration.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/327
Reviewed-by: Berke Kocaoğlu &lt;berke.kocaoglu@metu.edu.tr&gt;
</content>
</entry>
</feed>
