Skip to content

Commit

Permalink
session-lock: fix assertion failure on hot-plug while locked
Browse files Browse the repository at this point in the history
  • Loading branch information
ifreund committed Jan 25, 2023
1 parent 9461730 commit 7695218
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion river/Output.zig
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ usable_box: wlr.Box,
views: ViewStack(View) = .{},

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 {
/// Normal, "unlocked" content may be visible.
unlocked,
Expand All @@ -82,7 +86,7 @@ lock_render_state: enum {
pending_lock_surface,
/// The lock surface buffer has been presented.
lock_surface,
} = .unlocked,
} = .blanked,

/// The double-buffered state of the output.
current: State = State{ .tags = 1 << 0 },
Expand Down

0 comments on commit 7695218

Please sign in to comment.