summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authorokan <okan>2013-07-09 01:24:49 +0000
committerokan <okan>2013-07-09 01:24:49 +0000
commitdd10412804923a5e1b2aab46ab94c4f8e29696fb (patch)
tree1cbd3ee838a602b83bb3fe9b5ef54a0285e13281 /group.c
parent9bf2498d7e388a7c0a05e3850b5235c5bb381d47 (diff)
downloadcwm-dd10412804923a5e1b2aab46ab94c4f8e29696fb.tar.gz
cwm-dd10412804923a5e1b2aab46ab94c4f8e29696fb.tar.xz
cwm-dd10412804923a5e1b2aab46ab94c4f8e29696fb.zip
since the root and event window are the same in the case of a button
event on the screen's root window, there's no need to pass down the
entire XButtonEvent event, at least to group_menu(), the only callback
which takes an argument at this point; instead use the already populated
screen.
Diffstat (limited to 'group.c')
-rw-r--r--group.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/group.c b/group.c
index a25972a..020faf6 100644
--- a/group.c
+++ b/group.c
@@ -309,16 +309,13 @@ group_cycle(struct screen_ctx *sc, int flags)
 }
 
 void
-group_menu(XButtonEvent *e)
+group_menu(struct screen_ctx *sc)
 {
-	struct screen_ctx	*sc;
 	struct group_ctx	*gc;
 	struct menu		*mi;
 	struct menu_q		 menuq;
 	int			 i;
 
-	sc = screen_fromroot(e->root);
-
 	TAILQ_INIT(&menuq);
 
 	for (i = 0; i < CALMWM_NGROUPS; i++) {