summaryrefslogtreecommitdiff
path: root/app/cwm
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2016-09-30 15:05:03 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2016-09-30 15:05:03 +0000
commit9389959916593c9ae2afc78e5d7a7239ee5b8da3 (patch)
tree757866e2d8908c7d9c69073657a44fc4b8952e43 /app/cwm
parent3c428143a20556266ade06bae445b1da36173b98 (diff)
Switch to XWindowEvent() pulling out events that match the mask *and*
window.
Diffstat (limited to 'app/cwm')
-rw-r--r--app/cwm/mousefunc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/mousefunc.c b/app/cwm/mousefunc.c
index 805a10055..d1491af6f 100644
--- a/app/cwm/mousefunc.c
+++ b/app/cwm/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.108 2016/09/29 00:21:55 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.109 2016/09/30 15:05:02 okan Exp $
*/
#include <sys/types.h>
@@ -76,7 +76,7 @@ mousefunc_client_resize(struct client_ctx *cc, union arg *arg)
xu_ptr_setpos(cc->win, cc->geom.w, cc->geom.h);
for (;;) {
- XMaskEvent(X_Dpy, MOUSEMASK, &ev);
+ XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev);
switch (ev.type) {
case MotionNotify:
@@ -129,7 +129,7 @@ mousefunc_client_move(struct client_ctx *cc, union arg *arg)
xu_ptr_getpos(cc->win, &px, &py);
for (;;) {
- XMaskEvent(X_Dpy, MOUSEMASK, &ev);
+ XWindowEvent(X_Dpy, cc->win, MOUSEMASK, &ev);
switch (ev.type) {
case MotionNotify: