[texlive-bin] 01/04: try to fix expose events (PV on tex-k), make release
This is an automated email from the git hooks/post-receive script.
preining pushed a commit to branch experimental
in repository texlive-bin.
commit 1b68dff877169c15884d5a684a7a510f13889c7a
Author: Norbert Preining <preining@debian.org>
Date: Sat May 27 11:02:11 2017 +0900
try to fix expose events (PV on tex-k), make release
---
debian/changelog | 6 ++--
debian/patches/mf-xt-fix-expose-events | 55 ++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 59 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 52f80d9..aa299b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,11 +1,11 @@
-texlive-bin (2017.20170524.44437-1~1) experimental; urgency=medium
+texlive-bin (2017.20170524.44437-1) experimental; urgency=medium
- * UNRELEASED
* make-orig-tar: we are in 2017 now ;-)
* New upstream version 2017.20170524.44437
* update patches
+ * add fix for expose events from tex-k ml
- -- Norbert Preining <preining@debian.org> Wed, 24 May 2017 11:50:49 +0900
+ -- Norbert Preining <preining@debian.org> Sat, 27 May 2017 11:01:41 +0900
texlive-bin (2016.20160513.41080.dfsg-2) unstable; urgency=medium
diff --git a/debian/patches/mf-xt-fix-expose-events b/debian/patches/mf-xt-fix-expose-events
new file mode 100644
index 0000000..d1fdf2f
--- /dev/null
+++ b/debian/patches/mf-xt-fix-expose-events
@@ -0,0 +1,55 @@
+Patch by Paul Vojta to fix expose events in online mf
+(closed bug report of texlive-bin in Debian)
+(tex-k mailing list 20170526)
+---
+ texk/web2c/window/x11-Xt.c | 17 ++++++++++++-----
+ 1 file changed, 12 insertions(+), 5 deletions(-)
+
+--- texlive-bin.orig/texk/web2c/window/x11-Xt.c
++++ texlive-bin/texk/web2c/window/x11-Xt.c
+@@ -42,7 +42,8 @@
+
+
+ /* Don't paint anything until we're mapped. */
+-static Boolean mf_mapped;
++static Boolean mf_mapped = False;
++static Boolean mf_awaiting_expose = True;
+
+ #ifdef MF_XT_DEBUG
+ static int mf_max_x, mf_max_y;
+@@ -150,10 +151,8 @@
+ sits in XTMainLoop, if the server supports backing store
+ and save unders this will help keep the output looking
+ nice. */
+- xwa.backing_store = Always;
+- xwa.save_under = True;
+- XChangeWindowAttributes (mf_display, mf_window,
+- CWBackingStore | CWSaveUnder, &xwa);
++ xwa.backing_store = WhenMapped;
++ XChangeWindowAttributes (mf_display, mf_window, CWBackingStore, &xwa);
+
+ gcv.background = mf_x11_resources.mf_bg;
+ gcv.foreground = mf_x11_resources.mf_fg;
+@@ -174,7 +173,14 @@
+ void
+ mf_x11_updatescreen (void)
+ {
++ XEvent event;
++
+ mf_events ();
++ while (mf_awaiting_expose)
++ {
++ XtAppNextEvent (mf_app, &event);
++ XtDispatchEvent (&event);
++ }
+ mf_redraw ();
+
+ #ifdef MF_XT_DEBUG
+@@ -327,6 +333,7 @@
+ continue;
+
+ mf_redraw ();
++ mf_awaiting_expose = False;
+ }
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index c302e18..8cdf55e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,3 +12,4 @@ fix-format-gcc-errors
fix-mktexlsr-bashims
disable-seetex-stdin-tests
upupstream-xdvi-desktop-file
+mf-xt-fix-expose-events
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/texlive-bin.git
Reply to: