! 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 !
Heavy flickering when starting amule
Status:
RESOLVED: FIXED

Comments

Description bugzilla 2009-02-12 10:03:03 CET
When I start amule 2.2.2 it tries to put itself on top of the other windows but is pushed back immeadiatly to the background. The result is a flickering effect with about 5 to 10 Hz which lasts for 3 to 5 s. After that amules either crashes or puts a system tray icon on the desktop. I use Ubuntu Ibex, the effect is reproducable here.
Comment 1 Olivier Fourdan editbugs 2009-02-12 21:32:02 CET
Is that application responding to a configure notify with a configure request??
Comment 2 Olivier Fourdan editbugs 2009-02-12 21:51:12 CET
Do you have focus stealing prevention enabled?
Comment 3 bugzilla 2009-02-12 21:58:44 CET
I do not know what a configure notify is. Can you explain this please?

Focus stealing prevention is enabled.
Comment 4 bugzilla 2009-02-14 02:33:02 CET
I just want to add that the flickering also appears when amule is the only window on the desktop.
Comment 5 Olivier Fourdan editbugs 2009-02-14 11:57:13 CET
Then I don't understand with what it's racing...

- Can you capture the effect in a screencast?
- Can you try without focus stealing prevention
- Any chance that you try with 4.6?

I cannot reproduce this with amune 2.2.3 and Xfce 3.6 here.
Comment 6 Olivier Fourdan editbugs 2009-02-14 11:58:21 CET
(In reply to comment #5)
> I cannot reproduce this with amune 2.2.3 and Xfce 3.6 here.
                                                   ^^^^^
I meant Xfce 4.6
Comment 7 Olivier Fourdan editbugs 2009-02-14 20:40:20 CET
BTW, you failed to mention that the problem occurs *only* when amule is configure to 1) Use systray, 2) Hide to systray and 3) start hidden...
Comment 8 Olivier Fourdan editbugs 2009-02-14 20:57:07 CET
Does not see mto be xfce specific, I can reproduce the problem with kwin under kde 4.2
Comment 9 Olivier Fourdan editbugs 2009-02-16 11:12:30 CET
Fix committed in revision 29493.

Note: This is still unclear to me what is correct behaviour here, the problem happens with some other window managers too (e.g. kwin from kde 4.2, fluxbox) but not with others (openbox, metacity, icewm).
Comment 10 bugzilla 2009-02-16 19:08:51 CET
I have tried now with Amule 2.2.2 and Xfce 4.4.3 on a 2nd system under gentoo (AMD64) and could not reproduce it there. However, on my 1st system the bug appears independend of focus stealing prevention switched on or off.

I would like to provide a screencast of this but do not know which software to use for this. There are 2 apps in the Ubuntu reps, thats byzanz, which can not be started here and istanbul which is way to slow to record an effect at this frequency.
Comment 11 Olivier Fourdan editbugs 2009-02-16 20:02:20 CET
Sorry I might not have made myself clear, I have been able to reproduce the issue (by configuring amule to use the systray, hide to systray and start hidden) so there is no need for a screencast. The problem is a race condition between the app and the window manager.

That problem is apparently not specific to xfwm4 and affects also other window managers. I suspect this is related to the use of wxGTK "IsShown()" to hide or show the main window, and the chapter 4.1.4 of the ICCCM relative to the use of a synthetic UnmapNotify event to widthraw the window. Apparently, amule overreacts when the WM actually unframe the window when the synthetic UnmapNotify event is processed.

Anyhow, I have committed a fix to xfwm4, but that will not be backported to xfce 4.4.

Bug #4928

Reported by:
bugzilla
Reported on: 2009-02-12
Last modified on: 2009-07-14

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Attachments

Additional information