path: root/src/gui
diff options
authorShawn Rutledge <>2015-02-11 12:14:13 +0100
committerShawn Rutledge <>2015-02-12 13:24:33 +0000
commit98aae7428d86155a596c4318643752477d7726ad (patch)
treed14361b023bf75bfb601b50e7f95fe3ad0a2a50b /src/gui
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 <>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions