]> git.sur5r.net Git - i3/i3/commitdiff
ewmh: add comment to describe why we count
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 14 Mar 2011 16:15:04 +0000 (17:15 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 14 Mar 2011 16:15:04 +0000 (17:15 +0100)
src/ewmh.c

index a8bc51c8b976260e2278de7bc21bab1b8c6edf0b..64ab096fc674d834d7c0db1c468c6510a7b3997c 100644 (file)
@@ -24,6 +24,8 @@ void ewmh_update_current_desktop() {
     Con *focused_ws = con_get_workspace(focused);
     Con *output;
     uint32_t idx = 0;
+    /* We count to get the index of this workspace because named workspaces
+     * don’t have the ->num property */
     TAILQ_FOREACH(output, &(croot->nodes_head), nodes) {
         Con *ws;
         TAILQ_FOREACH(ws, &(output_get_content(output)->nodes_head), nodes) {