gimp but for windows: a wayland compositor
git clone https://github.com/m-col/wimp
Files | Refs | Readme

Commit 5bee7ec4312ac7afbcfd55469500d2e93456a7ae
Parent: 914243bac21a2211434a90686e6de4d1ffbf0936
Author: mcol <mcol@posteo.net>
Date: 2021-02-21 21:30:16 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2021-02-21 21:30:16 +0000

leave new view size damage to view_process_resize

src/shell.c Modified

@@ -229,28 +229,7 @@
 
 static void on_commit(struct wl_listener *listener, void *data) {
     struct view *view = wl_container_of(listener, view, commit_listener);
-
-    struct wlr_box new;
-    wlr_xdg_surface_get_geometry(view->surface, &new);
-
-    if (new.width != view->width || new.height != view->height) {
-       struct wlr_box old = {
-           .x = view->x,
-           .y = view->x,
-           .width = view->width,
-           .height = view->height,
-       };
-       if (new.width > old.width || new.height > old.height) {
-           damage_box(&new, true);
-       } else if (new.width <= old.width || new.height <= old.height) {
-           damage_box(&old, true);
-       }
-       view->width = new.width;
-       view->height = new.height;
-
-    } else {
-       damage_by_view(view, false);
-    }
+    damage_by_view(view, false);
 }