Support ext-session-lock protocol

This commit is contained in:
Johan Malm 2023-03-30 22:19:05 +01:00 committed by Johan Malm
parent 6b83385ff7
commit d4288415c9
8 changed files with 356 additions and 1 deletions

22
include/session-lock.h Normal file
View file

@ -0,0 +1,22 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __LAB_SESSION_LOCK_H
#define __LAB_SESSION_LOCK_H
#include <wlr/types/wlr_session_lock_v1.h>
struct session_lock {
struct wlr_session_lock_v1 *lock;
struct wlr_surface *focused;
bool abandoned;
struct wl_list session_lock_outputs;
struct wl_listener new_surface;
struct wl_listener unlock;
struct wl_listener destroy;
};
void session_lock_init(struct server *server);
void session_lock_output_create(struct session_lock *lock, struct output *output);
#endif /* __LAB_SESSION_LOCK_H */