| Summary: | Document zooms in/out constantly when Okular is "snapped" using the Kwin effect | ||
|---|---|---|---|
| Product: | [Applications] okular | Reporter: | Justin Brown <justin.brown1.1> |
| Component: | general | Assignee: | Okular developers <okular-devel> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Justin Brown
2010-01-18 18:10:55 UTC
With "The zoom is automatically set to 'Fit Width.'" You mean that snapping the window changes the zoom value in Okular? Thanks Albert. Okular is automatically set to "Fit Width." It opens in "fit width" and stays in "fit width" after "snapping." Here's my understanding of how Okular works. Okular is in a "main window" that contains the entire application. Inside that there is a sub-window (some type of qt widget probably) that shows the document. When Okular is set to "fit width" the sub-window sets its scale (zoom) based on the size of the main window. Either Okular or Kwin is sending/receiving a strange window size. If you look at the output that I posted, you can see that Okular repeats messages like: okular(23703)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest: sending request id=3 695x885@0 async == true okular(23703)/okular (app) Okular::Document::requestPixmaps: request id=3 678x863@0 okular(23703)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest: sending request id=3 678x863@0 async == true It thinks that the window size is changing between two values. Because "fit width" is dependent on the main window size, Okular is constantly re-scaling the document based on those two window sizes. The interesting thing is that the main window is not changing in size. It just thinks that it is. The Okular window is not moving/resizing. Must have been an RC1 bug (or more likely, related to the Kubuntu packages). No problems with RC2. Closing this bug. |