aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2017-02-10 15:00:54 +0000
committerokan2017-02-10 15:00:54 +0000
commit53d39c6c470cbeca66f7ed24c6db3722d586030a (patch)
tree59fbbcd63a2740f525ad1358bfea0b7d0c0b9805
parent27fbc31fe1a56a9c9fbd25f51d9fc29263f695fa (diff)
downloadcwm-53d39c6c470cbeca66f7ed24c6db3722d586030a.tar.gz
Fix group hidden state when a client wants to be on all desktops on start;
reported by Vadim Vygonets with diff, but another approach was taken.
-rw-r--r--group.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/group.c b/group.c
index d76f7e6..68f2cb3 100644
--- a/group.c
+++ b/group.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: group.c,v 1.125 2016/10/24 17:39:38 okan Exp $
+ * $OpenBSD: group.c,v 1.126 2017/02/10 15:00:54 okan Exp $
*/
#include <sys/types.h>
@@ -164,7 +164,7 @@ group_movetogroup(struct client_ctx *cc, int idx)
if (cc->gc == gc)
return;
- if (group_holds_only_hidden(gc))
+ if (gc->num != 0 && group_holds_only_hidden(gc))
client_hide(cc);
group_assign(gc, cc);
}