]> git.sur5r.net Git - i3/i3/commitdiff
bugfix: don't use con_is_internal
authorSimon Elsbrock <simon@iodev.org>
Mon, 12 Nov 2012 12:36:33 +0000 (13:36 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 12 Nov 2012 18:49:01 +0000 (19:49 +0100)
fixes #872

src/workspace.c

index 1e7071875cd97f186986723f193d2c6e9bba6fa6..25b30ff6d9f887fc6e09381ac3f078bf0b01cee6 100644 (file)
@@ -343,7 +343,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 && !con_is_internal(current)) {
+    if (current && !(current->name[0] == '_' && current->name[1] == '_')) {
         FREE(previous_workspace_name);
         if (current) {
             previous_workspace_name = sstrdup(current->name);