painfully slow scrolling at higher dpi
This commit is contained in:
sthen 2013-04-07 11:38:06 +00:00
parent 76b80ac249
commit 65a57187bd
2 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.40 2013/04/07 11:35:16 sthen Exp $
# $OpenBSD: Makefile,v 1.41 2013/04/07 11:38:06 sthen Exp $
COMMENT = graphic library, pdf parser, viewer and utilities
@ -6,7 +6,7 @@ V = 1.2
DISTNAME = mupdf-$V-source
EXTRACT_SUFX = .zip
PKGNAME = mupdf-${V:S/-rc/rc/}
REVISION = 0
REVISION = 1
CATEGORIES = textproc x11

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-apps_x11_main_c,v 1.3 2013/04/07 11:38:06 sthen Exp $
http://bugs.ghostscript.com/show_bug.cgi?id=693679
--- apps/x11_main.c.orig Sun Apr 7 12:28:50 2013
+++ apps/x11_main.c Sun Apr 7 12:29:05 2013
@@ -840,6 +840,7 @@ int main(int argc, char **argv)
break;
case MotionNotify:
+ while(XCheckTypedEvent(xdpy,MotionNotify,&xevt));
oldx = xevt.xmotion.x;
oldy = xevt.xmotion.y;
onmouse(xevt.xmotion.x, xevt.xmotion.y, 0, xevt.xmotion.state, 0);