Summary: | Revert the change in display not work | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | BRULE Herman <alpha_one_x86> |
Component: | kcm_randr | Assignee: | Gustavo Pichorim Boiko <gustavo.boiko> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andresbajotierra, cfeck, debfx-kde, hbock, juho.vanhanen, kde, l.lunak, skreech2 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Unspecified | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Proposed patch to fix reverting the display resolution |
Description
BRULE Herman
2010-01-10 20:20:29 UTC
*** Bug 225215 has been marked as a duplicate of this bug. *** *** Bug 225216 has been marked as a duplicate of this bug. *** Bug 180047 looks the same like this... Bug 233306 has an analysis of the related code *** Bug 233306 has been marked as a duplicate of this bug. *** Created attachment 42653 [details]
Proposed patch to fix reverting the display resolution
In RandRConfig::apply():
output->proposeRect(configuredRect.translated( normalizePos ));
output->proposeRotation(config->rotation());
output->proposeRefreshRate(config->refreshRate());
These output->propose* functions are supposed to set the proposed value and save the original value. They call refreshRate(), rect() and rotation() to get the original value.
Unfortunately m_crtc is invalid at that time so the original value is empty (e.g. QRect(0, 0, 0, 0)) and therefore reverting the resolution fails.
The attached patch fixes this by enabling the output/crtc in the RandROutput::propose* functions.
On 4.4.2 this patch fixes both the kcm display and krandrtray. Thank you very much. *** Bug 180047 has been marked as a duplicate of this bug. *** SVN commit 1113965 by sitter: Make revert display resolution change work by enabling output/crtc in the RandROutput::propose* functions. Thanks to Felix Geyer for the patch! BUG: 222110 M +9 -0 randroutput.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1113965 SVN commit 1113969 by sitter: Backport r1113965. Make revert display resolution change work by enabling output/crtc in the RandROutput::propose* functions. Thanks to Felix Geyer for the patch! BUG: 222110 M +9 -0 randroutput.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1113969 |