summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2014-09-07 20:57:27 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2014-09-07 20:57:27 +0000
commitee47ca3bba67b35c99a65ff235b3dc5c9e515d5b (patch)
tree4e7c6b4e4467d700d08bb509255cc081358bd5f8 /app
parent0e0aedaf6e1b51a3dbf4fac94141625c60174bbc (diff)
Add screen_ctx to group_ctx, and populate on init.
Diffstat (limited to 'app')
-rw-r--r--app/cwm/calmwm.h3
-rw-r--r--app/cwm/group.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/app/cwm/calmwm.h b/app/cwm/calmwm.h
index 17215a154..7ae23f501 100644
--- a/app/cwm/calmwm.h
+++ b/app/cwm/calmwm.h
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: calmwm.h,v 1.270 2014/09/07 17:38:38 okan Exp $
+ * $OpenBSD: calmwm.h,v 1.271 2014/09/07 20:57:26 okan Exp $
*/
#ifndef _CALMWM_H_
@@ -203,6 +203,7 @@ TAILQ_HEAD(cycle_entry_q, client_ctx);
struct group_ctx {
TAILQ_ENTRY(group_ctx) entry;
+ struct screen_ctx *sc;
struct client_ctx_q clients;
char *name;
int num;
diff --git a/app/cwm/group.c b/app/cwm/group.c
index bf9864cb8..95126abf9 100644
--- a/app/cwm/group.c
+++ b/app/cwm/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;