Comment 1 for bug 1430848

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 ());
        });