window icons don't go away [awn-applet]

Bug #834804 reported by Kived
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DockbarX
Fix Committed
Undecided
Unassigned

Bug Description

Using AWN applet, I have had problems with some window icons not disappearing when the associated windows were closed. Only some windows are affected, primarily xulrunner applications that I am running in a 32-bit chroot (on my 64-bit system), and Eclipse IDE windows (using IBM JRE). The xulrunner app is the worst as I am continually closing and restarting the app, so I end up with a window list with 30 window entries, none of which are actually open anymore.

This does not happen in run-in-window mode as it seems to be a problem in the AWN applet itself. I ran AWN from a terminal to see the output and found this:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/dockbarx/dockbar.py", line 461, in __on_window_closed
    dock.remove_window(window)
  File "/usr/share/avant-window-navigator/applets/DockBarX/DockBarX.py", line 138, in remove_window
    del self.border_distances[window]
  File "/usr/lib/python2.7/weakref.py", line 253, in __delitem__
    del self.data[ref(key)]

I got it working by wrapping 'del self.border_distances[window]' in a try-except block, but I don't know much python and that may or may not be the best solution. But either way, I'm attaching my tiny little patch. :)

Revision history for this message
Kived (kived) wrote :
Revision history for this message
elbahek (elbahek) wrote :

Same bug. Applied your patch, it is working, thanks.

Matias Särs (msevens)
Changed in dockbar:
status: New → Fix Committed
Revision history for this message
Stef (vomitoo) wrote :

Same here. success too. thanks very much!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.