river: fix various fullscreen related bugs

This commit is contained in:
Isaac Freund
2023-02-28 22:56:12 +01:00
parent e11d4dc0de
commit 8cb5ca9041
5 changed files with 118 additions and 94 deletions

View File

@ -406,6 +406,8 @@ fn handleMode(listener: *wl.Listener(*wlr.Output), _: *wlr.Output) void {
var it = self.layers.fullscreen.children.iterator(.forward);
const background_color_rect = @fieldParentPtr(wlr.SceneRect, "node", it.next().?);
background_color_rect.setSize(width, height);
std.log.info("new output mode, width: {}, height: {}", .{ width, height });
}
server.root.applyPending();