Window isn't focused (or raised) under GNOME Shell/Mutter
## Submitted by Edwin Pujols
Assigned to **Nick Schermer**
**[Link to original bug (#10697)](https://bugzilla.xfce.org/show_bug.cgi?id=10697)**
## 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](/uploads/061cb7d9397a39ac492262518f8abb79/0001-Fix-focus-problem-under-GNOME-Shell-Mutter.patch)
issue