<feed xmlns='http://www.w3.org/2005/Atom'>
<title>swaylock/.git/main.c, branch 1.7</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>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>
<entry>
<title>Do not crash on connecting new output</title>
<updated>2022-02-10T08:54:57+00:00</updated>
<author>
<name>tiosgz</name>
<email>alamica@protonmail.com</email>
</author>
<published>2022-02-09T16:40:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=92de4d2e310c7bd7dca9c9ced602219dc8245a55'/>
<id>92de4d2e310c7bd7dca9c9ced602219dc8245a55</id>
<content type='text'>
The problem here was that a commit in reaction to wl_output::geometry
was made before the surface was configured, which is a protocol error.
See 65552.531 in the following log.

    [  65537.378] wl_registry@2.global(37, "wl_output", 4)
    [  65537.534]  -&gt; wl_registry@2.bind(37, "wl_output", 3, new id [unknown]@21)
    [  65537.679]  -&gt; wl_compositor@5.create_surface(new id wl_surface@19)
    [  65537.744]  -&gt; wl_compositor@5.create_surface(new id wl_surface@23)
    [  65537.822]  -&gt; wl_subcompositor@6.get_subsurface(new id wl_subsurface@24, wl_surface@23, wl_surface@19)
    [  65537.934]  -&gt; wl_subsurface@24.set_sync()
    [  65537.973]  -&gt; ext_session_lock_v1@3.get_lock_surface(new id ext_session_lock_surface_v1@25, wl_surface@19, wl_output@21)
    [  65538.086]  -&gt; wl_compositor@5.create_region(new id wl_region@26)
    [  65538.148]  -&gt; wl_region@26.add(0, 0, 2147483647, 2147483647)
    [  65538.275]  -&gt; wl_surface@19.set_opaque_region(wl_region@26)
    [  65538.325]  -&gt; wl_region@26.destroy()
    [  65538.383]  -&gt; wl_display@1.sync(new id wl_callback@27)
    [  65551.781] wl_display@1.delete_id(26)
    [  65551.924] wl_display@1.delete_id(27)
    [  65551.971] wl_pointer@13.enter(839, wl_surface@15, 558.01562500, 785.66796875)
    [  65552.093]  -&gt; wl_pointer@13.set_cursor(839, nil, 0, 0)
    [  65552.231] wl_output@21.geometry(0, 0, 440, 300, 0, "Samsung Electric Company", "SyncMaster", 0)
    [  65552.453]  -&gt; wl_surface@19.frame(new id wl_callback@26)
    [  65552.531]  -&gt; wl_surface@19.commit()
    [  65552.568] wl_output@21.mode(1, 1680, 1050, 59883)
    [  65552.685] wl_output@21.scale(1)
    [  65552.762] wl_output@21.done()
    [  65552.796] ext_session_lock_surface_v1@25.configure(840, 1680, 1050)
    [  65552.893]  -&gt; ext_session_lock_surface_v1@25.ack_configure(840)
    [  65553.044]  -&gt; wl_shm@4.create_pool(new id wl_shm_pool@28, fd 7, 7056000)
    [  65553.156]  -&gt; wl_shm_pool@28.create_buffer(new id wl_buffer@29, 0, 1680, 1050, 6720, 0)
    [  65553.224]  -&gt; wl_shm_pool@28.destroy()
    [  65558.903]  -&gt; wl_surface@19.set_buffer_scale(1)
    [  65558.953]  -&gt; wl_surface@19.attach(wl_buffer@29, 0, 0)
    [  65558.981]  -&gt; wl_surface@19.damage_buffer(0, 0, 2147483647, 2147483647)
    [  65559.013]  -&gt; wl_surface@19.commit()
    [  65559.026]  -&gt; wl_subsurface@24.set_position(842, 465)
    [  65559.063]  -&gt; wl_surface@23.attach(nil, 0, 0)
    [  65559.088]  -&gt; wl_surface@23.commit()
    [  65559.110]  -&gt; wl_subsurface@24.set_position(782, 465)
    [  65559.186]  -&gt; wl_shm@4.create_pool(new id wl_shm_pool@30, fd 8, 58564)
    [  65559.220]  -&gt; wl_shm_pool@30.create_buffer(new id wl_buffer@31, 0, 121, 121, 484, 0)
    [  65559.266]  -&gt; wl_shm_pool@30.destroy()
    [  65559.287]  -&gt; wl_surface@23.attach(nil, 0, 0)
    [  65559.316]  -&gt; wl_surface@23.commit()
    [  65559.385]  -&gt; wl_surface@23.set_buffer_scale(1)
    [  65559.402]  -&gt; wl_surface@23.attach(wl_buffer@31, 0, 0)
    [  65559.427]  -&gt; wl_surface@23.damage_buffer(0, 0, 2147483647, 2147483647)
    [  65559.458]  -&gt; wl_surface@23.commit()
    [  65559.467]  -&gt; wl_surface@19.commit()
    [  65559.478] wl_callback@27.done(840)
    [  65559.740] wl_display@1.error(ext_session_lock_surface_v1@25, 0, "session lock surface has never been configured")
    ext_session_lock_surface_v1@25: error 0: session lock surface has never been configured
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The problem here was that a commit in reaction to wl_output::geometry
was made before the surface was configured, which is a protocol error.
See 65552.531 in the following log.

    [  65537.378] wl_registry@2.global(37, "wl_output", 4)
    [  65537.534]  -&gt; wl_registry@2.bind(37, "wl_output", 3, new id [unknown]@21)
    [  65537.679]  -&gt; wl_compositor@5.create_surface(new id wl_surface@19)
    [  65537.744]  -&gt; wl_compositor@5.create_surface(new id wl_surface@23)
    [  65537.822]  -&gt; wl_subcompositor@6.get_subsurface(new id wl_subsurface@24, wl_surface@23, wl_surface@19)
    [  65537.934]  -&gt; wl_subsurface@24.set_sync()
    [  65537.973]  -&gt; ext_session_lock_v1@3.get_lock_surface(new id ext_session_lock_surface_v1@25, wl_surface@19, wl_output@21)
    [  65538.086]  -&gt; wl_compositor@5.create_region(new id wl_region@26)
    [  65538.148]  -&gt; wl_region@26.add(0, 0, 2147483647, 2147483647)
    [  65538.275]  -&gt; wl_surface@19.set_opaque_region(wl_region@26)
    [  65538.325]  -&gt; wl_region@26.destroy()
    [  65538.383]  -&gt; wl_display@1.sync(new id wl_callback@27)
    [  65551.781] wl_display@1.delete_id(26)
    [  65551.924] wl_display@1.delete_id(27)
    [  65551.971] wl_pointer@13.enter(839, wl_surface@15, 558.01562500, 785.66796875)
    [  65552.093]  -&gt; wl_pointer@13.set_cursor(839, nil, 0, 0)
    [  65552.231] wl_output@21.geometry(0, 0, 440, 300, 0, "Samsung Electric Company", "SyncMaster", 0)
    [  65552.453]  -&gt; wl_surface@19.frame(new id wl_callback@26)
    [  65552.531]  -&gt; wl_surface@19.commit()
    [  65552.568] wl_output@21.mode(1, 1680, 1050, 59883)
    [  65552.685] wl_output@21.scale(1)
    [  65552.762] wl_output@21.done()
    [  65552.796] ext_session_lock_surface_v1@25.configure(840, 1680, 1050)
    [  65552.893]  -&gt; ext_session_lock_surface_v1@25.ack_configure(840)
    [  65553.044]  -&gt; wl_shm@4.create_pool(new id wl_shm_pool@28, fd 7, 7056000)
    [  65553.156]  -&gt; wl_shm_pool@28.create_buffer(new id wl_buffer@29, 0, 1680, 1050, 6720, 0)
    [  65553.224]  -&gt; wl_shm_pool@28.destroy()
    [  65558.903]  -&gt; wl_surface@19.set_buffer_scale(1)
    [  65558.953]  -&gt; wl_surface@19.attach(wl_buffer@29, 0, 0)
    [  65558.981]  -&gt; wl_surface@19.damage_buffer(0, 0, 2147483647, 2147483647)
    [  65559.013]  -&gt; wl_surface@19.commit()
    [  65559.026]  -&gt; wl_subsurface@24.set_position(842, 465)
    [  65559.063]  -&gt; wl_surface@23.attach(nil, 0, 0)
    [  65559.088]  -&gt; wl_surface@23.commit()
    [  65559.110]  -&gt; wl_subsurface@24.set_position(782, 465)
    [  65559.186]  -&gt; wl_shm@4.create_pool(new id wl_shm_pool@30, fd 8, 58564)
    [  65559.220]  -&gt; wl_shm_pool@30.create_buffer(new id wl_buffer@31, 0, 121, 121, 484, 0)
    [  65559.266]  -&gt; wl_shm_pool@30.destroy()
    [  65559.287]  -&gt; wl_surface@23.attach(nil, 0, 0)
    [  65559.316]  -&gt; wl_surface@23.commit()
    [  65559.385]  -&gt; wl_surface@23.set_buffer_scale(1)
    [  65559.402]  -&gt; wl_surface@23.attach(wl_buffer@31, 0, 0)
    [  65559.427]  -&gt; wl_surface@23.damage_buffer(0, 0, 2147483647, 2147483647)
    [  65559.458]  -&gt; wl_surface@23.commit()
    [  65559.467]  -&gt; wl_surface@19.commit()
    [  65559.478] wl_callback@27.done(840)
    [  65559.740] wl_display@1.error(ext_session_lock_surface_v1@25, 0, "session lock surface has never been configured")
    ext_session_lock_surface_v1@25: error 0: session lock surface has never been configured
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for ext-session-lock-v1</title>
<updated>2022-02-02T14:30:45+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2021-12-20T16:25:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=1d1c75b6316d21933069a9d201f966d84099f6ca'/>
<id>1d1c75b6316d21933069a9d201f966d84099f6ca</id>
<content type='text'>
This is a new protocol to lock the session [1]. It should be more
reliable than layer-shell + input-inhibitor.

[1]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/131
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a new protocol to lock the session [1]. It should be more
reliable than layer-shell + input-inhibitor.

[1]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/131
</pre>
</div>
</content>
</entry>
<entry>
<title>Call fclose vice free, fixes #198</title>
<updated>2021-07-11T17:52:55+00:00</updated>
<author>
<name>grumpey</name>
<email>grumpey0@gmail.com</email>
</author>
<published>2021-07-11T17:40:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=366db56553ee02334871756ab19c72d2171ad364'/>
<id>366db56553ee02334871756ab19c72d2171ad364</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use wl_surface.damage_buffer</title>
<updated>2021-02-17T15:50:38+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2021-02-10T16:45:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=9d3da72a39771bb4d2241ea66b620d97c22298da'/>
<id>9d3da72a39771bb4d2241ea66b620d97c22298da</id>
<content type='text'>
We incorrectly used the buffer size instead of the surface size.
Let's not bother and just damage the maximum region.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We incorrectly used the buffer size instead of the surface size.
Let's not bother and just damage the maximum region.
</pre>
</div>
</content>
</entry>
<entry>
<title>Initialize indicator size to zero</title>
<updated>2021-02-17T15:50:38+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2021-02-10T16:42:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=05325b1197f9921f7d03096173589e5c06411ebb'/>
<id>05325b1197f9921f7d03096173589e5c06411ebb</id>
<content type='text'>
Initializing to 1 is incorrect when the surface scale is &gt; 1.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Initializing to 1 is incorrect when the surface scale is &gt; 1.
</pre>
</div>
</content>
</entry>
</feed>
