diff options
author | okan <okan> | 2013-07-09 01:24:49 +0000 |
---|---|---|
committer | okan <okan> | 2013-07-09 01:24:49 +0000 |
commit | dd10412804923a5e1b2aab46ab94c4f8e29696fb (patch) | |
tree | 1cbd3ee838a602b83bb3fe9b5ef54a0285e13281 /mousefunc.c | |
parent | 9bf2498d7e388a7c0a05e3850b5235c5bb381d47 (diff) | |
download | cwm-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 'mousefunc.c')
-rw-r--r-- | mousefunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mousefunc.c b/mousefunc.c index 40fae3f..faf9b65 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -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 |