Send timestamp to WM to avoid focus stealing prevention

Bug #1462833 reported by Daniel Fore on 2015-06-07
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Noise
New
Undecided
Unassigned

Bug Description

It looks like we're not sending a timestamp when we try to pull up the player, so it gets caught by Mutter's focus stealing prevention. In Noise, we use:

this.present_with_time ((uint32)GLib.get_monotonic_time ());

It looks like both "present_with_time" on "raise" act on a Window, so it might be a drop-in replacement

Djax (parnold-x) wrote :

The indicator only calls Raise() over the MPRIS interface and doesn't know something about windows.
So this must happen in Noise here:
http://bazaar.launchpad.net/~elementary-apps/noise/trunk/view/head:/plugins/MPRIS/MPRIS.vala :123

affects: wingpanel-indicator-sound → noise
Djax (parnold-x) wrote :

added a branch.
present_with_time alone didn't help in some cases so i call it after present. This makes sure it will be focused in front every time.

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

Other bug subscribers