summaryrefslogtreecommitdiffhomepage
path: root/patch/sortscreens.h
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2019-10-07 22:56:53 +0200
committerbakkeby <[email protected]>2019-10-07 22:56:53 +0200
commit2612060419c9c19a743f63393154abe176177f3c (patch)
tree414fe971c92e8f222fed09c62c70b71363f8a155 /patch/sortscreens.h
parentfc28c6a7b2befb1af04863c022e24820f2ac5d4c (diff)
downloaddwm-flexipatch-2612060419c9c19a743f63393154abe176177f3c.tar.gz
dwm-flexipatch-2612060419c9c19a743f63393154abe176177f3c.zip
Adding sortscreens patch
Diffstat (limited to 'patch/sortscreens.h')
-rw-r--r--patch/sortscreens.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/patch/sortscreens.h b/patch/sortscreens.h
new file mode 100644
index 0000000..d829cdf
--- /dev/null
+++ b/patch/sortscreens.h
@@ -0,0 +1,3 @@
+#define RIGHTOF(a,b) (a.y_org > b.y_org) || ((a.y_org == b.y_org) && (a.x_org > b.x_org))
+
+static void sortscreens(XineramaScreenInfo *screens, int n); \ No newline at end of file