mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 09:30:24 -07:00
sowm: small fixes
This commit is contained in:
parent
7e4466e38e
commit
0ed080b99c
3
sowm.c
3
sowm.c
@ -52,7 +52,6 @@ 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;
|
||||||
@ -281,6 +280,6 @@ int main(void) {
|
|||||||
XDefineCursor(d, root, XCreateFontCursor(d, 68));
|
XDefineCursor(d, root, XCreateFontCursor(d, 68));
|
||||||
input_grab(root);
|
input_grab(root);
|
||||||
|
|
||||||
while (1 && !XNextEvent(d, &ev))
|
while (1 && !XNextEvent(d, &ev)) // 1 && will forever be here.
|
||||||
if (events[ev.type]) events[ev.type](&ev);
|
if (events[ev.type]) events[ev.type](&ev);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user