render: do basic yes/no damage tracking

This commit is contained in:
Isaac Freund
2021-05-24 16:43:21 +02:00
parent 3390f223a8
commit 13f01bcb4b
11 changed files with 232 additions and 53 deletions
+3
View File
@@ -232,6 +232,9 @@ fn handleRequestConfigure(
/// TODO: check for unexpected change in size and react as needed
fn handleCommit(listener: *wl.Listener(*wlr.Surface), surface: *wlr.Surface) void {
const self = @fieldParentPtr(Self, "commit", listener);
self.view.output.damage.addWhole();
self.view.surface_box = Box{
.x = 0,
.y = 0,