Window isn't focused (or raised) under GNOME Shell/Mutter
Submitted by Edwin Pujols
Assigned to Nick Schermer
Description
Created attachment 5364 Patch for focus problem under GNOME Shell/Mutter
This bug happens under GNOME Shell/Mutter (I tried it with version 3.10)
Steps to reproduce
0- Set key bindings for Terminal (e.g., Ctr-Alt-T) and TerminalDropdown (e.g., F12).
1- Open Firefox and maximize it, make sure it has the focus.
2- a) Press the key binding for Terminal (Ctrl-Alt-T). Notice that the window isn't raised above the Firefox one and it doesn't "steal" the focus either. b) With Firefox focused, press the key binding for TerminalDropdown (F12). Notice that even though the dropdown window is drawn above Firefox, it doesn't have the focus (Firefox's window still has it).
I've checked that the patch I attached works on different distros (Debian sid, Arch, Ubuntu trusty) without any obvious regression. The problematic line says:
/* this is required to get the geometry right
- later in the terminal_window_add() call. */ gtk_widget_hide (GTK_WIDGET (terminal));
My hunch is that the problem this line tried to solve/work around is obsoleted... Or maybe I am missing something :-)
Patch 5364, "Patch for focus problem under GNOME Shell/Mutter":
0001-Fix-focus-problem-under-GNOME-Shell-Mutter.patch