GNOME Bugzilla – Bug 547554
Need to activate Hotkey three times in order to open applet
Last modified: 2010-01-23 17:21:45 UTC
Please describe the problem: If I press <super>H, the applet gets focused, but doesn't open completely - only the currently displayed line is focused. I need to press the hotkey two more times to reach the actual applet window - once to deactivate and another to really open the applet. Steps to reproduce: 1. start hamster with default settings 2. do as described Actual results: Expected results: Does this happen every time? yes Other information:
Which version of GNOME/Metacity/Compiz are you using? There used to be a Metacity compositor bug that prevented it from properly drawing Hamster's window 50% of the time. Works fine for me with GNOME 2.23.6.
Oh, i'm experiencing this one too on Ubuntu Hardy (not using compiz). Patryk - does it work for you even if you have a window where hamster's main drop-down should appear?
Ah! Now I see what you mean. Easily fixable by setting Hamster to always appear on top like the clock's calendar does.
...or not. Focus stealing prevention still does not allow the window to get keyboard focus even if it ends up in front. Toms, could you check if calling .present() on window fixes this? I'm at work right now and can't do any immediate checks. If not, could you ask Metacity developers what is the right way to handle that case?
window.present() didn't solve the problem based on somewhat outdated thread http://osdir.com/ml/gnome.gtk+.python/2004-12/msg00046.html i tried to call the window display function with gtk.idle_add() and it appears to work quite well (like 100% on my box :) ) - i wonder if we can consider this to be a dirty hack or something we can live with.
anyway - checked in TRUNK - at least this one works http://code.google.com/p/projecthamster/source/diff?r=373&format=side&path=/trunk/hamster/applet.py Marked also as TODO, since this is only going around race condition, not really solving it.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report. sorry for bugspam!
reopening until we get response from metacity guys how to solve this properly
workaround is marked as TODO in code and metacity has not gotten back about this, so, errm, the TODO should suffice here