summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2009-09-19 11:52:16 +0100
committerAnselm R Garbe <anselm@garbe.us>2009-09-19 11:52:16 +0100
commitf0a4845e7dec3a4c7316311fcf1108148bb29730 (patch)
treeb055a57a06759c7d959b0a7a17e8c23e18397bab /dwm.c
parentnew experimental updategeom() additions that should avoid several problems wi... (diff)
downloaddwm-f0a4845e7dec3a4c7316311fcf1108148bb29730.tar.gz
dwm-f0a4845e7dec3a4c7316311fcf1108148bb29730.zip
added TODO to updategeom in order to implement a decent version of it soon
Diffstat (limited to '')
-rw-r--r--dwm.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 2b4d6b0..7363396 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1699,6 +1699,40 @@ updategeom(void) {
1699 Client *c; 1699 Client *c;
1700 Monitor *newmons = NULL, *m = NULL, *tm; 1700 Monitor *newmons = NULL, *m = NULL, *tm;
1701 1701
1702 /* TODO:
1703 * This function needs to be seriously re-designed:
1704 *
1705 * #ifdef XINERAMA
1706 * 1. Determine number of already existing monitors n
1707 * 2. Determine number of monitors Xinerama reports nn
1708 * 3. if(n <= nn) {
1709 * if(n < nn) {
1710 * append nn-n monitors to current struct
1711 * flag dirty
1712 * }
1713 * for(i = 0; i < nn; i++) {
1714 * if(oldgeom != newgeom) {
1715 * apply newgeom;
1716 * flag dirty;
1717 * }
1718 * }
1719 * }
1720 * else {
1721 * detach all clients
1722 * destroy current monitor struct
1723 * create new monitor struct
1724 * attach all clients to first monitor
1725 * flag dirty;
1726 * }
1727 * return dirty flag to caller
1728 * if dirty is seen by caller:
1729 * re-arrange bars/pixmaps
1730 * arrange()
1731 * #else
1732 * don't share between XINERAMA and non-XINERAMA handling if it gets
1733 * too ugly
1734 * #endif
1735 */
1702#ifdef XINERAMA 1736#ifdef XINERAMA
1703 XineramaScreenInfo *info = NULL; 1737 XineramaScreenInfo *info = NULL;
1704 Bool *flags = NULL; 1738 Bool *flags = NULL;