summaryrefslogtreecommitdiff
path: root/patch/placemouse.h
diff options
context:
space:
mode:
authorBear <bear@bengtsson.win>2021-12-27 09:29:58 +0000
committerBear <bear@bengtsson.win>2021-12-27 09:29:58 +0000
commit69262b01ced79c2d776fab9b889926d1816a1e7a (patch)
treef304cd6fa8734e83a7772d07dc9b484781565155 /patch/placemouse.h
Added DWM
Diffstat (limited to 'patch/placemouse.h')
-rw-r--r--patch/placemouse.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/patch/placemouse.h b/patch/placemouse.h
new file mode 100644
index 0000000..20c3eca
--- /dev/null
+++ b/patch/placemouse.h
@@ -0,0 +1,7 @@
+#define INTERSECTC(x,y,w,h,z) (MAX(0, MIN((x)+(w),(z)->x+(z)->w) - MAX((x),(z)->x)) \
+ * MAX(0, MIN((y)+(h),(z)->y+(z)->h) - MAX((y),(z)->y)))
+
+static void moveorplace(const Arg *arg);
+static void placemouse(const Arg *arg);
+static Client *recttoclient(int x, int y, int w, int h);
+