sowm: Compress window events after compressing all events.

This commit is contained in:
Dylan Araps 2020-03-11 22:21:41 +02:00
parent f201a467ea
commit e22087856b
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 0 deletions

1
sowm.c
View File

@ -52,6 +52,7 @@ void notify_motion(XEvent *e) {
if (!mouse.subwindow || cur->f) return;
while(XCheckTypedEvent(d, MotionNotify, e));
while(XCheckTypedWindowEvent(d, mouse.subwindow, MotionNotify, e));
int xd = e->xbutton.x_root - mouse.x_root;
int yd = e->xbutton.y_root - mouse.y_root;