aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authorokan2014-09-07 20:57:26 +0000
committerokan2014-09-07 20:57:26 +0000
commit07d6d91674e9c45d7c19ae5d59b6ba17462f5121 (patch)
tree269930d62ed11014fc5307b3efe26ee0a943594f /group.c
parenteab7846097604d0bfc81f122685219fe7a738415 (diff)
downloadcwm-07d6d91674e9c45d7c19ae5d59b6ba17462f5121.tar.gz
Add screen_ctx to group_ctx, and populate on init.
Diffstat (limited to 'group.c')
-rw-r--r--group.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/group.c b/group.c
index bf9864c..95126ab 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.99 2014/09/07 17:27:20 okan Exp $
+ * $OpenBSD: group.c,v 1.100 2014/09/07 20:57:26 okan Exp $
*/
#include <sys/param.h>
@@ -124,6 +124,7 @@ group_init(struct screen_ctx *sc)
for (i = 0; i < CALMWM_NGROUPS; i++) {
gc = xcalloc(1, sizeof(*gc));
+ gc->sc = sc;
TAILQ_INIT(&gc->clients);
gc->name = xstrdup(num_to_name[i]);
gc->num = i;