aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2014-01-20 23:03:51 +0000
committerokan2014-01-20 23:03:51 +0000
commita312a1655b8beac83ae1df783c44e84867f0ebcf (patch)
tree39d000c6b7cb4d6ae87eee376d22455c02205f19 /xevents.c
parent4b339afeffe5ce7c19c1c9ea0217b45b386708d1 (diff)
downloadcwm-a312a1655b8beac83ae1df783c44e84867f0ebcf.tar.gz
merge KBFLAG_NEEDCLIENT and MOUSEBIND_CTX_*; brings kbfunc and mousefunc
bits even closer.
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xevents.c b/xevents.c
index 428c0db..6f6a2d6 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.104 2014/01/03 15:29:06 okan Exp $
+ * $OpenBSD: xevents.c,v 1.105 2014/01/20 23:03:51 okan Exp $
*/
/*
@@ -235,11 +235,11 @@ xev_handle_buttonpress(XEvent *ee)
if (mb == NULL)
return;
- if (mb->flags == MOUSEBIND_CTX_WIN) {
+ if (mb->flags & CWM_WIN) {
if (((cc = client_find(e->window)) == NULL) &&
(cc = client_current()) == NULL)
return;
- } else { /* (mb->flags == MOUSEBIND_CTX_ROOT) */
+ } else {
if (e->window != e->root)
return;
cc = &fakecc;
@@ -287,7 +287,7 @@ xev_handle_keypress(XEvent *ee)
if (kb == NULL)
return;
- if (kb->flags & KBFLAG_NEEDCLIENT) {
+ if (kb->flags & CWM_WIN) {
if (((cc = client_find(e->window)) == NULL) &&
(cc = client_current()) == NULL)
return;