session-lock: handle output unplugging better

This commit is contained in:
tiosgz
2022-02-09 19:00:28 +00:00
committed by Isaac Freund
parent 33187e0b09
commit 49efbfe046
13 changed files with 70 additions and 51 deletions

View File

@ -300,7 +300,7 @@ fn handleSetOverrideRedirect(
fn handleCommit(listener: *wl.Listener(*wlr.Surface), surface: *wlr.Surface) void {
const self = @fieldParentPtr(Self, "commit", listener);
self.view.output.damage.addWhole();
self.view.output.damage.?.addWhole();
self.view.surface_box = .{
.x = 0,