<feed xmlns='http://www.w3.org/2005/Atom'>
<title>swaylock/.git, 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>build: bump version to 1.7.2</title>
<updated>2023-01-28T21:54:27+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-01-28T21:54:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=bd2dfec9ae0111b1858d5fab44f0f4fac4117d07'/>
<id>bd2dfec9ae0111b1858d5fab44f0f4fac4117d07</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<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>build: bump version to 1.7.1</title>
<updated>2023-01-27T11:23:16+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-01-27T11:23:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=6213fa0a7cac6da1a49f340d4999b9f6f9e82a5c'/>
<id>6213fa0a7cac6da1a49f340d4999b9f6f9e82a5c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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>Remove overridden surface attachment</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:49:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=b4e3a2b0fdda3fcbc40e19c94bb7a7961aa7653c'/>
<id>b4e3a2b0fdda3fcbc40e19c94bb7a7961aa7653c</id>
<content type='text'>
The removed lines had no effect, since later in `render_frame`
buffer-&gt;buffer is attached to surface-&gt;child.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The removed lines had no effect, since later in `render_frame`
buffer-&gt;buffer is attached to surface-&gt;child.
</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>build: use configuration data for SYSCONFDIR and SWAYLOCK_VERSION</title>
<updated>2022-12-05T10:02:41+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2022-12-05T10:02:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=84598b08f21ae607810044f39caf9e0569cf2087'/>
<id>84598b08f21ae607810044f39caf9e0569cf2087</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>build: drop intermediate protocols static lib</title>
<updated>2022-12-05T10:02:41+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2022-12-05T09:59:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=ee8d4ff65529ee7187f2dd2b6f313fd1efdd288a'/>
<id>ee8d4ff65529ee7187f2dd2b6f313fd1efdd288a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
