feat: add lock session protocol support (WIP)

This commit is contained in:
DanyLE
2024-04-15 17:32:53 +02:00
parent fdb2843561
commit 5b29514b09
8 changed files with 339 additions and 4 deletions

9
seat.c
View File

@ -271,10 +271,10 @@ static void seat_focus(struct diyac_seat *seat, struct wlr_surface *surface, boo
* lock screen may lose focus and become impossible to unlock.
*/
struct diyac_server *server = seat->server;
/*if (server->session_lock && !is_lock_surface)
if (server->lock && !is_lock_surface)
{
return;
}*/
}
if (!surface)
{
@ -314,6 +314,11 @@ void diyac_seat_focus_surface(struct diyac_seat *seat, struct wlr_surface *surfa
seat_focus(seat, surface, /*is_lock_surface*/ false);
}
void diyac_seat_focus_lock_surface(struct diyac_seat *seat, struct wlr_surface *surface)
{
seat_focus(seat, surface, /*is_lock_surface*/ true);
}
void diyac_seat_focus_layer(struct diyac_seat *seat, struct wlr_layer_surface_v1 *layer)
{
if (!layer)