changeset: 1474:d39b21ff64f4
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Tue Jul 21 08:57:04 2009 +0100
files: config.mk dwm.c
description:
updategeom fix for same geom screens
diff -r a4d3e32cb7ef -r d39b21ff64f4 config.mk
--- a/config.mk Mon Jul 20 17:08:34 2009 +0100
+++ b/config.mk Tue Jul 21 08:57:04 2009 +0100
@@ -1,5 +1,5 @@
# dwm version
-VERSION = 5.7
+VERSION = 5.6.1
# Customize below to fit your system
diff -r a4d3e32cb7ef -r d39b21ff64f4 dwm.c
--- a/dwm.c Mon Jul 20 17:08:34 2009 +0100
+++ b/dwm.c Tue Jul 21 08:57:04 2009 +0100
@@ -1683,7 +1683,7 @@
void
updategeom(void) {
- int i, n = 1;
+ int i, n = 1, nn;
Client *c;
Monitor *newmons = NULL, *m = NULL, *tm;
@@ -1692,6 +1692,11 @@
if(XineramaIsActive(dpy))
info = XineramaQueryScreens(dpy, &n);
+ for(i = 1, nn = n; i < n; i++)
+ if(info[i - 1].x_org == info[i].x_org && info[i - 1].y_org == info[i].y_org
+ && info[i - 1].width == info[i].width && info[i - 1].height == info[i].height)
+ --nn;
+ n = nn; /* we only consider unique geometrys as separate screens */
#endif /* XINERAMA */
/* allocate monitor(s) for the new geometry setup */
for(i = 0; i < n; i++) {
Received on Tue Jul 21 2009 - 07:57:09 UTC
This archive was generated by hypermail 2.2.0 : Tue Jul 21 2009 - 08:00:06 UTC