Bug 155745 - xpdf doesn't work with window resize
Summary: xpdf doesn't work with window resize
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: X11 Applications (show other bugs)
Version: Beta 6
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Michal Marek
QA Contact: Stefan Dirsch
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-07 14:34 UTC by Takashi Iwai
Modified: 2006-03-09 10:03 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
xpdf normally displaying with fit-width (181.56 KB, image/png)
2006-03-07 15:01 UTC, Takashi Iwai
Details
xpdf window is expanded, but the view area doesn't change (200.11 KB, image/png)
2006-03-07 15:02 UTC, Takashi Iwai
Details
zoomed; the view area still unchanged... (133.52 KB, image/png)
2006-03-07 15:03 UTC, Takashi Iwai
Details
... and you can even simulate a heavy drunker (109.86 KB, image/png)
2006-03-07 15:05 UTC, Takashi Iwai
Details
Fix resize problem (806 bytes, patch)
2006-03-07 18:50 UTC, Takashi Iwai
Details | Diff
xpdf-3.01-resize.patch (831 bytes, text/x-patch)
2006-03-08 13:15 UTC, Michal Marek
Details

Note You need to log in before you can comment on or make changes to this bug.
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.