mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 01:20:23 -07:00
sowm: Compress window events after compressing all events.
This commit is contained in:
parent
f201a467ea
commit
e22087856b
1
sowm.c
1
sowm.c
@ -52,6 +52,7 @@ void notify_motion(XEvent *e) {
|
|||||||
if (!mouse.subwindow || cur->f) return;
|
if (!mouse.subwindow || cur->f) return;
|
||||||
|
|
||||||
while(XCheckTypedEvent(d, MotionNotify, e));
|
while(XCheckTypedEvent(d, MotionNotify, e));
|
||||||
|
while(XCheckTypedWindowEvent(d, mouse.subwindow, MotionNotify, e));
|
||||||
|
|
||||||
int xd = e->xbutton.x_root - mouse.x_root;
|
int xd = e->xbutton.x_root - mouse.x_root;
|
||||||
int yd = e->xbutton.y_root - mouse.y_root;
|
int yd = e->xbutton.y_root - mouse.y_root;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user