session-lock: fix assertion failure on hot-plug while locked
This commit is contained in:
parent
946173005d
commit
76952183c0
@ -69,6 +69,10 @@ usable_box: wlr.Box,
|
|||||||
views: ViewStack(View) = .{},
|
views: ViewStack(View) = .{},
|
||||||
|
|
||||||
lock_surface: ?*LockSurface = null,
|
lock_surface: ?*LockSurface = null,
|
||||||
|
/// Tracks the currently presented frame on the output as it pertains to ext-session-lock.
|
||||||
|
/// The output is initially considered blanked:
|
||||||
|
/// If using the DRM backend it will be blanked with the initial modeset.
|
||||||
|
/// If using the Wayland or X11 backend nothing will be visible until the first frame is rendered.
|
||||||
lock_render_state: enum {
|
lock_render_state: enum {
|
||||||
/// Normal, "unlocked" content may be visible.
|
/// Normal, "unlocked" content may be visible.
|
||||||
unlocked,
|
unlocked,
|
||||||
@ -82,7 +86,7 @@ lock_render_state: enum {
|
|||||||
pending_lock_surface,
|
pending_lock_surface,
|
||||||
/// The lock surface buffer has been presented.
|
/// The lock surface buffer has been presented.
|
||||||
lock_surface,
|
lock_surface,
|
||||||
} = .unlocked,
|
} = .blanked,
|
||||||
|
|
||||||
/// The double-buffered state of the output.
|
/// The double-buffered state of the output.
|
||||||
current: State = State{ .tags = 1 << 0 },
|
current: State = State{ .tags = 1 << 0 },
|
||||||
|
Loading…
Reference in New Issue
Block a user