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

Commit 3e5fc4b2bd41458c4e5a6c8cebb76c5578ee49a8
Parent: eeac25dc651af303235ae1b7c6e39750c7bfda99
Author: mcol <mcol@posteo.net>
Date: 2021-01-30 20:13:11 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2021-01-30 20:13:11 +0000

reorganise some lines in move_window

src/action.c Modified

@@ -46,13 +46,12 @@
 
 
 void move_window(void *data) {
-    struct wlr_surface *surface;
-    double sx, sy;
     struct view *view;
-
     if (wimp.grabbed_view) {
 	view = wimp.grabbed_view;
     } else {
+	double sx, sy;
+	struct wlr_surface *surface;
 	view = view_at(wimp.cursor->x, wimp.cursor->y, &surface, &sx, &sy);
 	if (!view) {
 	    return;