From: Michael Stapelberg Date: Fri, 14 Dec 2012 20:44:20 +0000 (+0100) Subject: Revert "don't use con_is_internal" X-Git-Tag: 4.5~111 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=61a5b9ddd4806cd65820717dd3d0e3fda8a68cba;p=i3%2Fi3 Revert "don't use con_is_internal" This reverts commit c6948c59f592aa5ca0c2d81ff7ac1368a253c353. Given that master and next now both contain con_is_internal, we can use it again. --- diff --git a/src/workspace.c b/src/workspace.c index 4ccf421c..5a0913bf 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -397,7 +397,7 @@ static void _workspace_show(Con *workspace) { * the corresponding workspace is cleaned up. * NOTE: Internal cons such as __i3_scratch (when a scratchpad window is * focused) are skipped, see bug #868. */ - if (current && !(current->name[0] == '_' && current->name[1] == '_')) { + if (current && !con_is_internal(current)) { FREE(previous_workspace_name); if (current) { previous_workspace_name = sstrdup(current->name);