From 5a540e47c2eed7a84c09f2d4dcf93a808f3e005e Mon Sep 17 00:00:00 2001 From: Sadrul Habib Chowdhury Date: Thu, 4 Mar 2010 18:10:05 -0500 Subject: Fix sending mouse event to a mouse-enabled layer. --- src/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display.c b/src/display.c index 9f596c5..36368aa 100644 --- a/src/display.c +++ b/src/display.c @@ -3430,7 +3430,7 @@ char *data; y = bp[4] - 33; if (x >= D_forecv->c_xs && x <= D_forecv->c_xe && y >= D_forecv->c_ys && y <= D_forecv->c_ye) { - if (D_fore && (D_fore->w_mouse || (D_mousetrack && D_forecv->c_layer->l_mode == 1))) + if ((D_fore && D_fore->w_mouse) || (D_mousetrack && D_forecv->c_layer->l_mode == 1)) { /* Send clicks only if the window is expecting clicks */ x -= D_forecv->c_xoff; -- cgit v1.2.1