summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformtheme.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2015-02-11 12:14:13 +0100
committerShawn Rutledge <shawn.rutledge@digia.com>2015-02-12 13:24:33 +0000
commit98aae7428d86155a596c4318643752477d7726ad (patch)
treed14361b023bf75bfb601b50e7f95fe3ad0a2a50b /src/gui/kernel/qplatformtheme.h
parent69d46a3e205e3533c8bdcf1a1f4e5ce92604759d (diff)
xcb: QSystemTrayIcon: grab background pixmap for compositing only once
Followup to 2203d9d93e24e00d6e9bc9bda0e65a0c7f9923cc: clearRegion takes a little time, so doing grabWindow() too soon afterwards can result in grabbing a pixmap with undesired leftovers. And doing it every time we render the icon causes flicker. So, do clearRegion() ASAP when showing the icon, wait for it to happen, then grabWindow() only the first time we render, and reuse the resulting pixmap for all future calls to paintEvent(). (The downside is, if there is any corruption during the first grabWindow(), it's going to stay there as long as the app is running.) Task-number: QTBUG-35658 Change-Id: If881ab192dba43758dcbb0d080663ff42057fa4f Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qplatformtheme.h')
0 files changed, 0 insertions, 0 deletions