<feed xmlns='http://www.w3.org/2005/Atom'>
<title>swaylock/.git/main.c, branch v1.7.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/'/>
<entry>
<title>Wait for the locked event</title>
<updated>2023-01-28T21:51:38+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-01-27T12:18:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=be566a2935d12e31a0f7d2df15f294a7c7ed9dce'/>
<id>be566a2935d12e31a0f7d2df15f294a7c7ed9dce</id>
<content type='text'>
We were ignoring the locked event. Wait for it instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We were ignoring the locked event. Wait for it instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unused fields in swaylock_surface</title>
<updated>2023-01-27T11:19:32+00:00</updated>
<author>
<name>Manuel Stoeckl</name>
<email>code@mstoeckl.com</email>
</author>
<published>2023-01-14T20:16:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=4a44c306e73694594f804f84cb9f9821cc1d9e13'/>
<id>4a44c306e73694594f804f84cb9f9821cc1d9e13</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Estimate buffer size in advance for render_frame</title>
<updated>2023-01-27T11:19:32+00:00</updated>
<author>
<name>Manuel Stoeckl</name>
<email>code@mstoeckl.com</email>
</author>
<published>2023-01-14T19:51:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=10ab8b274020a9323413d093c45f13490929fb81'/>
<id>10ab8b274020a9323413d093c45f13490929fb81</id>
<content type='text'>
The size of the surface used to draw the indicator depends on
the extents of the text being drawn on and under the indicator.

This commit refactors the `render_frame` function so that the surface
size is computed before drawing; before, `render_frame` drew onto a
buffer, estimated the size the buffer should have had, and recursively
called itself to try again with the estimated size, if necessary. This
was done because Cairo's methods to estimate font and text size
require that a cairo_t context object and an associated cairo_surface
already have been set up. Since the surface size depends on the text
size, the natural way to use Cairo would have a circular dependency.

In order to compute sizes _before_ the buffer is created, this commit
adds a 1x1 surface and a matching `test_cairo` context which is set to
the same font and drawing parameters as the buffer that will be
created. Font/text extent measurements should give the same results as
for the final buffer.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The size of the surface used to draw the indicator depends on
the extents of the text being drawn on and under the indicator.

This commit refactors the `render_frame` function so that the surface
size is computed before drawing; before, `render_frame` drew onto a
buffer, estimated the size the buffer should have had, and recursively
called itself to try again with the estimated size, if necessary. This
was done because Cairo's methods to estimate font and text size
require that a cairo_t context object and an associated cairo_surface
already have been set up. Since the surface size depends on the text
size, the natural way to use Cairo would have a circular dependency.

In order to compute sizes _before_ the buffer is created, this commit
adds a 1x1 surface and a matching `test_cairo` context which is set to
the same font and drawing parameters as the buffer that will be
created. Font/text extent measurements should give the same results as
for the final buffer.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix option parsing without --debug after #261</title>
<updated>2023-01-26T15:34:49+00:00</updated>
<author>
<name>Lily Foster</name>
<email>lily@lily.flowers</email>
</author>
<published>2023-01-25T16:48:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=2c4bafc57f278fbd2a564c357da410173be28bc6'/>
<id>2c4bafc57f278fbd2a564c357da410173be28bc6</id>
<content type='text'>
From getopt manual page:

&gt; By default, getopt() permutes the contents of argv as it scans, so that eventually all the nonoptions are at the end. Two other scanning modes are also implemented. [...] If the first character of optstring is '-', then each nonoption argv-element is handled as if it were the argument of an option with character code 1.

&gt; If the first character (following any optional '+' or '-' described above) of optstring is a colon (':'), then getopt() likewise does not print an error message. In addition, it returns ':' instead of '?' to indicate a missing option argument. This allows the caller to distinguish the two different types of errors.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
From getopt manual page:

&gt; By default, getopt() permutes the contents of argv as it scans, so that eventually all the nonoptions are at the end. Two other scanning modes are also implemented. [...] If the first character of optstring is '-', then each nonoption argv-element is handled as if it were the argument of an option with character code 1.

&gt; If the first character (following any optional '+' or '-' described above) of optstring is a colon (':'), then getopt() likewise does not print an error message. In addition, it returns ':' instead of '?' to indicate a missing option argument. This allows the caller to distinguish the two different types of errors.
</pre>
</div>
</content>
</entry>
<entry>
<title>Parse `--debug` parameter before forking</title>
<updated>2023-01-03T15:34:53+00:00</updated>
<author>
<name>Arnout Engelen</name>
<email>arnout@bzzt.net</email>
</author>
<published>2022-11-17T23:04:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=d5eb85ba1c0231a8a069215ae3c23d070072f53a'/>
<id>d5eb85ba1c0231a8a069215ae3c23d070072f53a</id>
<content type='text'>
To make sure the backend picks up the loglevel as well
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To make sure the backend picks up the loglevel as well
</pre>
</div>
</content>
</entry>
<entry>
<title>Check for existence of subcompositor</title>
<updated>2022-11-14T20:07:01+00:00</updated>
<author>
<name>Alexander Orzechowski</name>
<email>orzechowski.alexander@gmail.com</email>
</author>
<published>2022-09-24T10:50:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=f6f804013f36e8cb66e1b8da4552b39aa421b8ab'/>
<id>f6f804013f36e8cb66e1b8da4552b39aa421b8ab</id>
<content type='text'>
We need this protocol
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need this protocol
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure that ext_session_lock_v1.unlock_and_destroy is processed.</title>
<updated>2022-11-12T09:40:19+00:00</updated>
<author>
<name>Aleksei Bavshin</name>
<email>alebastr89@gmail.com</email>
</author>
<published>2022-11-12T06:47:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=1225e75be0a1f328415db1248c3588bf60adf29a'/>
<id>1225e75be0a1f328415db1248c3588bf60adf29a</id>
<content type='text'>
Use wl_display_roundtrip to ensure that the unlock request is received
and processed by the server. The protocol requires[1] this to avoid
possible races.

[1]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/161
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use wl_display_roundtrip to ensure that the unlock request is received
and processed by the server. The protocol requires[1] this to avoid
possible races.

[1]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/161
</pre>
</div>
</content>
</entry>
<entry>
<title>Unlock the screen on SIGUSR1</title>
<updated>2022-09-24T10:15:53+00:00</updated>
<author>
<name>Daniel De Graaf</name>
<email>code@danieldg.net</email>
</author>
<published>2022-05-14T18:23:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=dafbef3ade130317ad0d941f9ce312bb68a708df'/>
<id>dafbef3ade130317ad0d941f9ce312bb68a708df</id>
<content type='text'>
When the screen is locked using ext_session_lock, killing swaylock will
leave the session locked.  This is normally desirable if the kill is due
to the OOM killer or swaylock crashing, but can be undesirable if an
unlock is desired.  This adds a signal handler for SIGUSR1 if using
ext_session_lock.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the screen is locked using ext_session_lock, killing swaylock will
leave the session locked.  This is normally desirable if the kill is due
to the OOM killer or swaylock crashing, but can be undesirable if an
unlock is desired.  This adds a signal handler for SIGUSR1 if using
ext_session_lock.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use mlock for password buffer</title>
<updated>2022-06-15T08:49:32+00:00</updated>
<author>
<name>Robin Ebert</name>
<email>ebertrobin2002@gmail.com</email>
</author>
<published>2022-05-30T09:50:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=bdeb891378bfcb2dc79de41cfeb6a62807d09b20'/>
<id>bdeb891378bfcb2dc79de41cfeb6a62807d09b20</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Drop xdg-output requirement</title>
<updated>2022-03-10T09:31:51+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2022-02-02T15:43:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=2813756a1919ecdea84b2bb164320104aec371ef'/>
<id>2813756a1919ecdea84b2bb164320104aec371ef</id>
<content type='text'>
Rely on wl_output v4 instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rely on wl_output v4 instead.
</pre>
</div>
</content>
</entry>
</feed>
