The issue seems to be old. It could be fixed either in X, in GTK or in
every application relying on GTK (Firefox in my case).

On launchpad, the issue is discussed there (not a duplicate) : 
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1165649
On Mozilla's bugzilla, another ticket that talks about the issue :  
https://bugzilla.mozilla.org/show_bug.cgi?id=578265
An interesting ticket on stackoverflow : 
http://stackoverflow.com/questions/15270420/why-xgrabkey-generates-extra-focus-out-and-focus-in-events

In X the problem comes from the XGrabKey function that internally calls
the ActivateKeyboardGrab() function, which then perform focus event
firing. However I still need to figure out why those focus events are
fired. Maybe it makes sense for other kinds of scenario than installing
a global keyboard hook.

Regarding GTK I read in 2012 posts that something could be done, but I
still need to figure out why 2 years later the problem is still here.

A fix may be possible for Firefox but it will be less efficient because
that will only fix one single application.

Hopefully Mir or Wayland/Weston will naturally fix the problem.

** Bug watch added: Mozilla Bugzilla #578265
   https://bugzilla.mozilla.org/show_bug.cgi?id=578265

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1397523

Title:
  Keyboard shortcuts steal temporarily the focus causing unwanted side
  effects

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-control-center/+bug/1397523/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to