feat: add lock session protocol support (WIP)
This commit is contained in:
9
seat.c
9
seat.c
@ -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)
|
||||
|
Reference in New Issue
Block a user