Mouse drag translates pointer position to image area

This makes mouse panning more direct and faster.
This commit is contained in:
Bert Münnich
2017-10-04 18:12:27 +02:00
parent 9b6acc781e
commit e310136e02
7 changed files with 38 additions and 62 deletions

1
main.c
View File

@ -741,6 +741,7 @@ void run(void)
XPeekEvent(win.env.dpy, &nextev);
switch (ev.type) {
case ConfigureNotify:
case MotionNotify:
discard = ev.type == nextev.type;
break;
case KeyPress: