Public bug reported:

I have run into a situation that after launching an app and waiting for
the app/surface to be finished starting and can visibly see that the
surface is focused, that isSurfaceFocused still returns false for the
given Mir persistent surface id.

If I click outside of the app and then back in, isSurfaceFocused returns
true for the very same Mir persistent surface id.

For example, here the gdbus output for a valid persistent surface id on the app 
that is in focus:
$ gdbus call --session --dest com.canonical.Unity.FocusInfo --object-path 
/com/canonical/Unity/FocusInfo --method 
com.canonical.Unity.FocusInfo.isSurfaceFocused 
"780fc686-52e7-43e6-a74f-01c44a0882b7"
(false,)

** Affects: qtmir
     Importance: Undecided
         Status: New

** Affects: qtmir (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: qtmir
   Importance: Undecided
       Status: New

** Description changed:

  I have run into a situation that after launching an app and waiting for
  the app/surface to be finished starting and can visibly see that the
  surface is focused, that isSurfaceFocused still returns false for the
  given Mir persistent surface id.
  
  If I click outside of the app and then back in, isSurfaceFocused returns
  true for the very same Mir persistent surface id.
+ 
+ For example, here the gdbus output for a valid persistent surface id on the 
app that is in focus:
+ $ gdbus call --session --dest com.canonical.Unity.FocusInfo --object-path 
/com/canonical/Unity/FocusInfo --method 
com.canonical.Unity.FocusInfo.isSurfaceFocused 
"780fc686-52e7-43e6-a74f-01c44a0882b7"
+ (false,)

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

Title:
  Dbus method isSurfaceFocused says surface is not focused after an app
  launches

To manage notifications about this bug go to:
https://bugs.launchpad.net/qtmir/+bug/1671610/+subscriptions

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

Reply via email to