! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
flicker in cairo dock with xfwm4
Status:
RESOLVED: FIXED

Comments

Description Pablo 2008-08-07 23:24:14 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1
Build Identifier: 

Whenever I hover my mouse over the dock, the dock will flicker once. This happens everytime the mouse pointer enters the dock.
Runs ok with compiz.

Reproducible: Always

Steps to Reproduce:
1. everytime the mouse pointer enter the dock
2.
3.

Actual Results:  
artifacts, flicker
Comment 1 Olivier Fourdan editbugs 2008-08-08 20:51:57 CEST
Definitely not a major issue.
Comment 2 Olivier Fourdan editbugs 2008-08-08 21:59:12 CEST
The problem seems to lie in the way cairo-dock handle its window. Upon mouse enter events, cairo-dock resizes its window (to allow the icons to grow) but that resize is done toward the top-left, causing the content of the window to be displaced for a fraction of second before the window is repaint.

The problem is not related to the compositor, and shows even when disabling the compositor, or when using other window managers (tried with kwin or metacity). I have not tried with compiz, but it might be that compiz does not update the content at once, that would explain why the content is not repainted during the time the cairo doc is moved/resized.

The window itself uses a static gravity, it might be interesting to try with a south gravity instead (when cairo-dock is located on the top, the resize occurs toward the bottom left and the flicker is less noticeable).

Note that the flicker is hardly noticeable here anyway (using NVidia and the "nouveau" driver).
Comment 3 Olivier Fourdan editbugs 2008-08-15 22:06:35 CEST
I have added a timed base repaint in xfwm4 compositor now, the multiples updates from cairo-dock window are now hidden as the repaint is not instantaneous and I do not see any flicker anymore (svn trunk only, I do not plan to backport this in the stable branch for now)

Bug #4268

Reported by:
Pablo
Reported on: 2008-08-07
Last modified on: 2020-05-21

People

Assignee:
Olivier Fourdan
CC List:
1 user

Version

Attachments

Additional information