Adding sortscreens patch

This commit is contained in:
bakkeby
2019-10-07 22:56:53 +02:00
parent fc28c6a7b2
commit 2612060419
7 changed files with 46 additions and 0 deletions

3
dwm.c
View File

@ -3104,6 +3104,9 @@ updategeom(void)
memcpy(&unique[j++], &info[i], sizeof(XineramaScreenInfo));
XFree(info);
nn = j;
#if SORTSCREENS_PATCH
sortscreens(unique, nn);
#endif // SORTSCREENS_PATCH
if (n <= nn) { /* new monitors available */
for (i = 0; i < (nn - n); i++) {
for (m = mons; m && m->next; m = m->next);