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

Commit ffeec229ef0799a4f057362686d2b5f13b3268f0
Parent: 457598231eb963ea573aae7171957beb97e09ac2
Author: mcol <mcol@posteo.net>
Date: 2021-02-21 20:15:25 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2021-02-21 20:15:25 +0000

correctly scale damage box when moving view

src/action.c Modified

@@ -78,11 +78,12 @@
 	    return;
 	}
     }
+    double zoom = wimp.current_desk->zoom;
     struct wlr_box damage = {
-	.x = view->x,
-	.y = view->y,
-	.width = view->surface->geometry.width,
-	.height = view->surface->geometry.height,
+	.x = view->x * zoom,
+	.y = view->y * zoom,
+	.width = view->surface->geometry.width * zoom,
+	.height = view->surface->geometry.height * zoom,
     };
     struct motion motion = *(struct motion*)data;
     if (motion.dx > 0) {