GNOME Bugzilla – Bug 676103
Guake window doesn't loose focus when closed
Last modified: 2014-09-21 05:46:36 UTC
If you open guake terminal via a hot key (F12 by default) and then close it using the same key the window somehow keeps focused and it's impossible to open it again without clicking on another window or blank desktop space. Someone else has reported this issue at guake bugtracker by someone else: http://guake.org/ticket/436
What do you mean by "impossible to open again"? How do you try to start it? What happens? Are there messages if you start it from a terminal? Have you checked with Unity/fallback mode that it doesn't happen?
OK it seems I missed some stuff while was editing my initial post. By impossible to open I mean it doesn't open if I press the assigned hotkey again. There are no messages, even if I start guake from terminal. It just happens to ignore me. I can't check if it works in Unity right now as I broken it somehow (messed something with compiz) but it used to work fine last time I ran Unity. It works well in GNOME Classic as well. Also I haven't notice this issue in an alpha release of Ubuntu 12.04 one or two months ago.
Could you run guake in gdb the second time, type "t a a bt" and attach the result here? You need to install debugging symbols for it first.
But it's a python script, how do I run it in gdb? And how is that helpful? It doesn't crash or something. Normally if I open a window on top of another one and then close it, the previous window gets its focus back, right? But this doesn't work to guake.
(In reply to comment #4) > But it's a python script, how do I run it in gdb? And how is that helpful? It > doesn't crash or something. Ah, sorry, I don't know guake at all. > Normally if I open a window on top of another one and then close it, the > previous window gets its focus back, right? But this doesn't work to guake. Now that I had a look, I understand guake might be doing strange things with windows. It probably does not close its window, but make it invisible, or very small... I guess you'd better find a guake developer to come discuss this here. Else, it will be hard to find out what really happens behind the scenes.
I must admit that it works as expected when I Quit guake via the context menu entry. Seems like it doesn't actually close the window, as you noticed. The project seems inactive active (last release dated in 2010 - http://projects.comum.org/guake/downloads) so I guess it's useless to expect them to look into this. Thank you anyway and sorry for disturbing.
Here's my fix : http://motorscript.com/guake-patch-to-fix-focus-on-gnome/