pop-os / cosmic-greeter

libcosmic greeter for greetd, which can be run inside cosmic-comp
GNU General Public License v3.0
55 stars 29 forks source link

Use `ext-session-lock` protocol #2

Closed ids1024 closed 10 months ago

ids1024 commented 11 months ago

Based on https://github.com/pop-os/iced/pull/71. Can be tested with either https://github.com/pop-os/cosmic-comp/pull/203 or a recent version of Sway.

Setting focus to the text input doesn't seem to work properly. That doesn't seem to be related to the ext-session-lock protocol, though, since the surface has keyboard focus and is getting key press events.

Calling process::exit(0) also doesn't work properly since the client can't exit until the server has processed the unlock call, or the server will stay locked (for security).

ids1024 commented 10 months ago

Now that https://github.com/pop-os/iced/pull/71 is merged, this just needs https://github.com/pop-os/libcosmic/pull/206. And the version of iced in libcosmic will need to be updated.

jackpot51 commented 10 months ago

@ids1024 can you make a PR to libcosmic to update iced there?