summaryrefslogtreecommitdiff
path: root/app/cwm/mousefunc.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-07-09 01:24:50 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-07-09 01:24:50 +0000
commit74a6bc2ce05ea78bb1da4c70a6cfd9af18a5a7b5 (patch)
tree0931252ee0c7f9aaa6327dbe25a9ba3114a518d1 /app/cwm/mousefunc.c
parent78fdbbe3616f2272381d4c6b2968febe387c2c0e (diff)
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 'app/cwm/mousefunc.c')
-rw-r--r--app/cwm/mousefunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/mousefunc.c b/app/cwm/mousefunc.c
index 366ad9e90..12a0f814a 100644
--- a/app/cwm/mousefunc.c
+++ b/app/cwm/mousefunc.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: mousefunc.c,v 1.55 2013/07/08 18:39:20 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.56 2013/07/09 01:24:49 okan Exp $
*/
#include <sys/param.h>
@@ -216,7 +216,7 @@ mousefunc_client_rcyclegroup(struct client_ctx *cc, void *arg)
void
mousefunc_menu_group(struct client_ctx *cc, void *arg)
{
- group_menu(arg);
+ group_menu(cc->sc);
}
void