Clicking on a notification doesn't bring app to foreground

Bug #1430848 reported by Philippe
30
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Gala
New
Undecided
Unassigned
elementary OS
New
Undecided
Unassigned

Bug Description

When I click on a notification, it doens't bring the corresponding application to foreground.
For example, when Geary notifies me of a new email, clicking on the notification doesn't bring Geary's window to foreground (even though Geary is open). In plank, the blue "point" under Geary turns red, nothing else.

On Freya beta 2 (fresh install + updates since then).

description: updated
affects: elementaryos → pantheon-notify
Cody Garver (codygarver)
affects: pantheon-notify → gala
Revision history for this message
Danielle Foré (danrabbit) wrote :

Okay so if I understand correctly (and I may not), we actually need the app to define it's default notification action as presenting the app and the app needs to pass a timestamp to the window manager so that mutter will allow the app as an exception to focus stealing prevention. Noise implements this currently. I believe the most relevant lines are between 587 and 595 here: http://bazaar.launchpad.net/~elementary-apps/noise/trunk/view/head:/src/LibraryWindow.vala

        notification.add_action ("default", "Show Noise", (notification, action) => {
            try {
                notification.close ();
            } catch (GLib.Error err) {
                error ("Could not close notification: %s", err.message);
            }

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

Revision history for this message
Ken Harkey (kenny727) wrote :

This happens with geary on my system, but other apps like pidgin aren't effected.

Revision history for this message
Ken Harkey (kenny727) wrote :

Edit to my previous comment, none of the apps are responding the way they should, so I can confirm this

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.