Open dKab opened 8 years ago
+1
This is because a focus stealing prevent feature in Unity, so poping up windows won't steal the focus while you're using another app. You can disable it by tampering with the configuration, but I don't like that approach, and I'm currently looking into a workaround.
I can only give this workaround as of now. Run this command:
dconf write /org/compiz/profiles/unity/plugins/core/focus-prevention-level 0
The problem is, this will disable the focus stealing prevention feature of Unity. If you want to reenable it, just issue the same command again but with a 1 instead of a 0.
I've just added this info to the README.md file
It seems compiz has a built-in skip for this feature. I just need to modify the key /org/compiz/profiles/unity/plugins/core/focus-prevention-match
. It defaults to:
!(class=Polkit-gnome-authentication-agent-1)
And it should read:
!(class=Polkit-gnome-authentication-agent-1) | !(class=Emojione-picker)
I have to test to make this change automatically if necessary at program startup.
It happens to me, too.
I have Debian Mate 9, x64. It has no Unity, no Compiz. So there is no /org/compiz... and no "focus-prevention" search results in dconf.
At first time, search window does take focus. And maybe two or three times more. Then, it doesn't take focus any more: always at behind. I don't know what I do with windows to emoji-picker act like that.
Tested with FireFox.
I'm on ubuntu 16.04 LTS and when I click "search emoji" the text input appears under my active window, so it's not visible and at first I even thought id doesnt work.