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

Bug #1671610 reported by Christopher Townsend
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtmir (Ubuntu)
New
Undecided
Unassigned

Bug Description

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,)

description: updated
Michał Sawicz (saviq)
no longer affects: qtmir
Revision history for this message
Christopher Townsend (townsend) wrote :

This is still not working in the latest release. And it actually seems to be worse. I can never get an x app surface to get "True" returned once it looses focus. isSurfaceFocused just keeps returning false even when it's focused.

Until this is fixed, copy and paste for X apps is going to be broken.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.