<feed xmlns='http://www.w3.org/2005/Atom'>
<title>swaylock/.git/main.c, branch v1.8.0</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>Init eventloop directly after wl_connect</title>
<updated>2024-02-23T18:17:28+00:00</updated>
<author>
<name>Christian Meissl</name>
<email>meissl.christian@gmail.com</email>
</author>
<published>2024-02-16T20:26:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=376cc5fcd486a3065b4c04ee4a1573606fb09038'/>
<id>376cc5fcd486a3065b4c04ee4a1573606fb09038</id>
<content type='text'>
this makes sure the eventloop is initialized before
any event dispatching. fixes occasional segfaults I
observed on resume.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this makes sure the eventloop is initialized before
any event dispatching. fixes occasional segfaults I
observed on resume.
</pre>
</div>
</content>
</entry>
<entry>
<title>Check initial wl_display_roundtrip() return value</title>
<updated>2023-12-14T10:52:28+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-12-14T10:35:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=7b4a5c44476615c1b0169e3c3b5e18810daba97e'/>
<id>7b4a5c44476615c1b0169e3c3b5e18810daba97e</id>
<content type='text'>
On error, print a message and exit.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On error, print a message and exit.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unnecessary wl_display_roundtrip() call</title>
<updated>2023-12-14T10:52:28+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-12-14T10:32:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=9b4b3905885777b7e419b99e2a21f1cd1629c167'/>
<id>9b4b3905885777b7e419b99e2a21f1cd1629c167</id>
<content type='text'>
Calling wl_display_roundtrip() from an event handler is a bad
practice in general because it nests multiple dispatches.

We don't need to block here anyways.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Calling wl_display_roundtrip() from an event handler is a bad
practice in general because it nests multiple dispatches.

We don't need to block here anyways.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix output-specific images when output reappears</title>
<updated>2023-12-14T10:31:13+00:00</updated>
<author>
<name>Martin Dørum</name>
<email>martid0311@gmail.com</email>
</author>
<published>2020-10-15T12:26:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=ba921312c538e2857ef1bc9e8a6f3bbb5799cff6'/>
<id>ba921312c538e2857ef1bc9e8a6f3bbb5799cff6</id>
<content type='text'>
When setting an image with `--image &lt;output&gt;:&lt;path&gt;`, the image used to
fail to apply if the relevant output appears some time after swaylock
executes.

Co-authored-by: Alexander Bakker &lt;ab@alexbakker.me&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When setting an image with `--image &lt;output&gt;:&lt;path&gt;`, the image used to
fail to apply if the relevant output appears some time after swaylock
executes.

Co-authored-by: Alexander Bakker &lt;ab@alexbakker.me&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Make self-pipe nonblocking to prevent deadlock</title>
<updated>2023-10-07T20:15:02+00:00</updated>
<author>
<name>Manuel Stoeckl</name>
<email>code@mstoeckl.com</email>
</author>
<published>2023-10-06T10:18:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=ccd31553f335f5a67d01e4ddf00b5ed73415e4ca'/>
<id>ccd31553f335f5a67d01e4ddf00b5ed73415e4ca</id>
<content type='text'>
If a large number of signals is sent, it is possible to fill the
buffer for sigusr_fds[1] before the main loop has a chance to read
from it; then the signal handler do_sigusr() will block on write.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a large number of signals is sent, it is possible to fill the
buffer for sigusr_fds[1] before the main loop has a chance to read
from it; then the signal handler do_sigusr() will block on write.
</pre>
</div>
</content>
</entry>
<entry>
<title>Configure SIGUSR1 with sigaction() instead of signal()</title>
<updated>2023-10-07T20:15:02+00:00</updated>
<author>
<name>Manuel Stoeckl</name>
<email>code@mstoeckl.com</email>
</author>
<published>2023-10-07T17:01:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=0569a47ef78346c1f79506ac1c0d0782febe42cf'/>
<id>0569a47ef78346c1f79506ac1c0d0782febe42cf</id>
<content type='text'>
If signal() is used to set a signal handler, only the first signal
received will use the handler; any later signals use the default
behavior (making swaylock terminate immediately, without unlocking).
Using sigaction() ensures that the handler will be used every time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If signal() is used to set a signal handler, only the first signal
received will use the handler; any later signals use the default
behavior (making swaylock terminate immediately, without unlocking).
Using sigaction() ensures that the handler will be used every time.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't send READY=1 for readiness notifications</title>
<updated>2023-10-06T11:03:07+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-10-05T15:11:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=f692ee00757d38022d0f634e6c41072cf4814d1b'/>
<id>f692ee00757d38022d0f634e6c41072cf4814d1b</id>
<content type='text'>
Just send a singular newline like s6 expects.

systemd doesn't support spawning a process with an FD to send
readiness notifications to, instead it provides a socket name. IOW,
this cannot be used directly with systemd after all.

Closes: https://github.com/swaywm/swaylock/issues/312
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Just send a singular newline like s6 expects.

systemd doesn't support spawning a process with an FD to send
readiness notifications to, instead it provides a socket name. IOW,
this cannot be used directly with systemd after all.

Closes: https://github.com/swaywm/swaylock/issues/312
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Wayland object leaks when outputs are destroyed</title>
<updated>2023-08-06T19:27:54+00:00</updated>
<author>
<name>Manuel Stoeckl</name>
<email>code@mstoeckl.com</email>
</author>
<published>2023-08-06T17:13:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=10df946671a12b4c0f4c13d4556a8bae6fc30394'/>
<id>10df946671a12b4c0f4c13d4556a8bae6fc30394</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Separate input and auth state</title>
<updated>2023-05-09T10:40:41+00:00</updated>
<author>
<name>Manuel Stoeckl</name>
<email>code@mstoeckl.com</email>
</author>
<published>2023-05-03T01:00:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=31ebd85fe09701146b7275de1ec8c8e9ce3c15c6'/>
<id>31ebd85fe09701146b7275de1ec8c8e9ce3c15c6</id>
<content type='text'>
This commit establishes separate state machines for auth state (whether
the password submitted is being verified or is wrong) and input state
(typing indicators and clear message -- things relevant to the state of
the password being typed in, before it is submitted.) This makes it
possible to display the auth state while updating the input state (for
example, show that the previously submitted password is 'verifying' or
'wrong' while typing another.)

The two state machines interact only when submitting a password. There
is some interference with the rendering code -- a 'cleared' message
from the input state machine supersedes verifying/wrong messages from
the auth state machine; although since the 'clear' state has a shorter
timeout than the auth 'invalid' state, this is unlikely to hide the 'wrong'
message.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit establishes separate state machines for auth state (whether
the password submitted is being verified or is wrong) and input state
(typing indicators and clear message -- things relevant to the state of
the password being typed in, before it is submitted.) This makes it
possible to display the auth state while updating the input state (for
example, show that the previously submitted password is 'verifying' or
'wrong' while typing another.)

The two state machines interact only when submitting a password. There
is some interference with the rendering code -- a 'cleared' message
from the input state machine supersedes verifying/wrong messages from
the auth state machine; although since the 'clear' state has a shorter
timeout than the auth 'invalid' state, this is unlikely to hide the 'wrong'
message.
</pre>
</div>
</content>
</entry>
<entry>
<title>Stop pooling background surface buffers</title>
<updated>2023-03-22T09:56:42+00:00</updated>
<author>
<name>Manuel Stoeckl</name>
<email>code@mstoeckl.com</email>
</author>
<published>2023-03-12T20:48:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=1d3e62c67f07a180fca02a6df1cf9648f2b50349'/>
<id>1d3e62c67f07a180fca02a6df1cf9648f2b50349</id>
<content type='text'>
The wl_buffers for the background surface only need to be updated
when the output dimensions change. Using the fixed pool of two
buffers to cache these buffers does not help, since if a new buffer
is needed, it will have a different size than whatever buffers were
cached. Furthermore, because the pool has fixed size, it is possible
to run out of buffers if configure events arrive faster than
pool buffers are marked not busy, which can lead to protocol errors
when the background surface is committed after acknowledging a new
size, but without attaching a buffer that matches that size.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The wl_buffers for the background surface only need to be updated
when the output dimensions change. Using the fixed pool of two
buffers to cache these buffers does not help, since if a new buffer
is needed, it will have a different size than whatever buffers were
cached. Furthermore, because the pool has fixed size, it is possible
to run out of buffers if configure events arrive faster than
pool buffers are marked not busy, which can lead to protocol errors
when the background surface is committed after acknowledging a new
size, but without attaching a buffer that matches that size.
</pre>
</div>
</content>
</entry>
</feed>
