From: Michael Stapelberg Date: Mon, 14 Mar 2011 16:15:04 +0000 (+0100) Subject: ewmh: add comment to describe why we count X-Git-Tag: tree-pr3~133 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fb9978b97533c5987f9af428ce58f6f0733e5ff5;p=i3%2Fi3 ewmh: add comment to describe why we count --- diff --git a/src/ewmh.c b/src/ewmh.c index a8bc51c8..64ab096f 100644 --- a/src/ewmh.c +++ b/src/ewmh.c @@ -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) {