aboutsummaryrefslogtreecommitdiffstats
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan2013-07-09 01:24:49 +0000
committerokan2013-07-09 01:24:49 +0000
commit0be19ed3a4dda428d7845aa2493138db0a4c353c (patch)
treecd1e4c1d751f15237b78e39bd933df3d17abdd5d /mousefunc.c
parentee5ad9e95b20897654c9830178f8f707b65adbe8 (diff)
downloadcwm-0be19ed3a4dda428d7845aa2493138db0a4c353c.tar.gz
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 '')
-rw-r--r--mousefunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 366ad9e..12a0f81 100644
--- a/mousefunc.c
+++ b/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