summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2014-08-22 19:04:00 +0000
committerokan <okan>2014-08-22 19:04:00 +0000
commitfe533fdc8edb2584b40a8bad9f00b8258529854f (patch)
treea25ef79ccd5141c92bc3bc4915885c81f6afc0f3 /mousefunc.c
parentb31b09dfc26b4b17c025d7196b8b5a4a26f599df (diff)
downloadcwm-fe533fdc8edb2584b40a8bad9f00b8258529854f.tar.gz
cwm-fe533fdc8edb2584b40a8bad9f00b8258529854f.tar.xz
cwm-fe533fdc8edb2584b40a8bad9f00b8258529854f.zip
Fix nogroup regression, where nogroup became an actual group - the
symantics between cwm groups and ewmh got in the way.  Ensure a client
that wants to be in nogroup stays in nogroup (thus stays in view), even
when (re)reading NET_WM_DESKTOP.  Paritially reverts patchset 644
(2014-02-07 13:09 PST) which deals with a NULL cc->group.  All to be
revisited when NET_WM_STATE_STICKY hits cwm.

Reported by many; testing and ok phessler.
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mousefunc.c b/mousefunc.c
index d6373cb..295d3a1 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -202,7 +202,8 @@ mousefunc_menu_unhide(struct client_ctx *cc, union arg *arg)
 			if (wname == NULL)
 				continue;
 
-			menuq_add(&menuq, cc, "(%d) %s", cc->group->num, wname);
+			menuq_add(&menuq, cc, "(%d) %s",
+			    cc->group ? cc->group->num : 0, wname);
 		}
 
 	if (TAILQ_EMPTY(&menuq))