kurnevsky / tktray

Automatically exported from code.google.com/p/tktray
Other
2 stars 2 forks source link

<<Icon*>> events are not reliable #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Create a tray and bind to the events.

What is the expected output? What do you see instead?
I expect the events to be triggered when the icon gets created, but no 
event is triggered at all.

What version of the product are you using? On what operating system?
I used tktray 1.3.7 on a Debian system

Please provide any additional information below.
I attached a small test file, you should expect to see a "icon created" 
and "icon configured" message.. Also after 1 second the icon gets undocked 
and redocked, you should see an "icon destroyed" and an "icon created" and 
"icon configured" message when that happens. Nothing appears at all.
I also crashed/restarted my window manager and nothing appeared.
Note however that the all.tcl test in tktray/tests suffers from the same 
issue, however it appears that the <Configure> or <<IconConfigure>> even 
gets triggered on a click, and we can see the <<IconCreated>> and 
<<IconDestroy>> events triggered when I crash my WM and restart it. 
However, I cannot get the same behavior with the test code attached.

Original issue reported on code.google.com by snifikino on 12 May 2010 at 8:36

Attachments:

GoogleCodeExporter commented 9 years ago
Note, I just made it send the events when the tray manager crashes.. but I 
couldn't 
reproduce it.. so it looks like it sometimes works, sometimes it doesn't...

Original comment by snifikino on 12 May 2010 at 8:57