Bug 155745

Summary: xpdf doesn't work with window resize
Product: [openSUSE] SUSE Linux 10.1 Reporter: Takashi Iwai <tiwai>
Component: X11 ApplicationsAssignee: Michal Marek <mmarek>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P5 - None CC: mmarek
Version: Beta 6   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: xpdf normally displaying with fit-width
xpdf window is expanded, but the view area doesn't change
zoomed; the view area still unchanged...
... and you can even simulate a heavy drunker
Fix resize problem
xpdf-3.01-resize.patch

Description Takashi Iwai 2006-03-07 14:34:40 UTC
When the window size of xpdf is expanded, xpdf doesn't handle the displayed area correctly corresponding to the new size but keeps the old view area.
As a result, it shows broken (mixed) image when scrolled.

This problem didn't occur with xpdf on 10.0.
Comment 1 Michael Gross 2006-03-07 14:44:46 UTC
Takashi, please attach a screenshot for a better visual impression of the problem.
Comment 2 Takashi Iwai 2006-03-07 15:01:56 UTC
Created attachment 71576 [details]
xpdf normally displaying with fit-width
Comment 3 Takashi Iwai 2006-03-07 15:02:51 UTC
Created attachment 71577 [details]
xpdf window is expanded, but the view area doesn't change
Comment 4 Takashi Iwai 2006-03-07 15:03:35 UTC
Created attachment 71578 [details]
zoomed; the view area still unchanged...
Comment 5 Takashi Iwai 2006-03-07 15:05:04 UTC
Created attachment 71579 [details]
... and you can even simulate a heavy drunker
Comment 6 Takashi Iwai 2006-03-07 18:38:18 UTC
This seems because of the check of ConfigureNotify event in XPDFCore.cc::update().
Removing this check solves the problem although this will keep redrawing during resize as an obvious side effect.
Comment 7 Takashi Iwai 2006-03-07 18:50:35 UTC
Created attachment 71619 [details]
Fix resize problem
Comment 8 Michal Marek 2006-03-08 13:15:00 UTC
Created attachment 71752 [details]
xpdf-3.01-resize.patch

What about this one? It still does throw away some events, and hopefully
doesn't miss the important ones.
Comment 9 Takashi Iwai 2006-03-08 13:45:35 UTC
Do you have a mbuilt package to test your patch?
Comment 10 Michal Marek 2006-03-08 13:48:43 UTC
Not yet.
Comment 11 Michal Marek 2006-03-08 13:53:25 UTC
chip-mmarek-426
Comment 12 Takashi Iwai 2006-03-08 13:55:40 UTC
Seems working fine.  Thanks.
Comment 13 Michal Marek 2006-03-09 10:03:24 UTC
OK, submitting.