commit c13be8d620372a55f5867cafd6ad4277ad77790c from: Anselm R Garbe date: Tue Jul 21 07:57:04 2009 UTC updategeom fix for same geom screens commit - dc39ae85681db71c6cfcaac442c1317c8b313566 commit + c13be8d620372a55f5867cafd6ad4277ad77790c blob - 086424d6c3172a2e0c954b95977f69041acf2a48 blob + 11a16f7a8521894f8ecbc476d1ade4248399a032 --- config.mk +++ config.mk @@ -1,5 +1,5 @@ # dwm version -VERSION = 5.7 +VERSION = 5.6.1 # Customize below to fit your system blob - e22ea7adbc0878931472e5424dde6b5fcc12d2b8 blob + 43f0fd51b2c7abedf4aff7f968de876f4ee781b7 --- dwm.c +++ dwm.c @@ -1683,7 +1683,7 @@ updatebarpos(Monitor *m) { void updategeom(void) { - int i, n = 1; + int i, n = 1, nn; Client *c; Monitor *newmons = NULL, *m = NULL, *tm; @@ -1692,6 +1692,11 @@ updategeom(void) { 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++) {