aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2013-07-08 18:19:22 +0000
committerokan2013-07-08 18:19:22 +0000
commit63e9ed547d2b6c27553b71a57d79d8afce15e2c5 (patch)
treecfbef2a3adb561b9f40967b03f889f031f4e02cf /xevents.c
parent90507e8e1a2ac93497684c584678e705e658dea7 (diff)
downloadcwm-63e9ed547d2b6c27553b71a57d79d8afce15e2c5.tar.gz
move kbfunc and mousefunc closer together
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xevents.c b/xevents.c
index c222e3e..bd2b715 100644
--- a/xevents.c
+++ b/xevents.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xevents.c,v 1.86 2013/07/08 15:46:16 okan Exp $
+ * $OpenBSD: xevents.c,v 1.87 2013/07/08 18:19:22 okan Exp $
*/
/*
@@ -253,12 +253,12 @@ xev_handle_buttonpress(XEvent *ee)
if (mb == NULL)
return;
- if (mb->context == MOUSEBIND_CTX_ROOT) {
+ if (mb->flags == MOUSEBIND_CTX_ROOT) {
if (e->window != sc->rootwin)
return;
cc = &fakecc;
cc->sc = screen_fromroot(e->window);
- } else if (cc == NULL) /* (mb->context == MOUSEBIND_CTX_WIN */
+ } else if (cc == NULL) /* (mb->flags == MOUSEBIND_CTX_WIN */
return;
(*mb->callback)(cc, e);