Review Request: Fix panel redraw after screen resize

Ralf Jung post+kde at ralfj.de
Fri Sep 21 15:57:38 UTC 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/106519/
-----------------------------------------------------------

(Updated Sept. 21, 2012, 3:57 p.m.)


Review request for Plasma.


Changes
-------

Changes: Using a QTimer member of DesktopCorona instead of QTimer::singleShot, to aggregate resize events that follow close after each other.


Description
-------

This patch is my attempt to fix redrawing the panel when the screen is resized. During my experiments, I added update() calls to all places I could think of, but none of them helped - it seems that even though the panel is redrawn, that content is not properly displayed. I am not sure whether this might actually be a bug in KWin: For example, I also saw parts of the panel content end up in the desktop background if compositing was disabled and the background was set to a solid black, opposed to an actual image. I don't have the knowledge to persuade that idea further though.
I found, however, a solution (or a work-around) to fix the panel bug. Is that acceptable?


This addresses bug 269635.
    http://bugs.kde.org/show_bug.cgi?id=269635


Diffs (updated)
-----

  plasma/desktop/shell/desktopcorona.h b65a926 
  plasma/desktop/shell/desktopcorona.cpp ea58c2c 

Diff: http://git.reviewboard.kde.org/r/106519/diff/


Testing
-------

Re-sized the screen a few times (using xrandr) to verify that the graphical glitches after a resize are gone.


Thanks,

Ralf Jung

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120921/e5dac5f1/attachment.html>


More information about the Plasma-devel mailing list