When evolution window is active, notifications are still displayed for new mail

Bug #342429 reported by Ken VanDine
6
Affects Status Importance Assigned to Milestone
evolution-indicator (Ubuntu)
Fix Released
Medium
Ted Gould

Bug Description

Binary package hint: evolution

Use case testing for the message indicator/notify-osd raised the issue of notifications appearing while evolution is the focused window.

Test Case 7: Evolution Window is active, email received

    * Confirm that a notification does not appear
          o Fail
    * Confirm that the new message appears in the main evolution window
          o Confirmed

More info at https://wiki.ubuntu.com/DesktopTeam/Meeting/JauntyIndicatorAppletTestCases

Changed in evolution:
assignee: nobody → tedg
importance: Undecided → Medium
Changed in evolution:
assignee: tedg → ted-gould
Changed in evolution (Ubuntu):
status: New → Confirmed
Revision history for this message
Ted Gould (ted) wrote :

Neil, is it possible to block notificaitons when the evolution window is in focus?

Revision history for this message
Neil J. Patel (njpatel) wrote :

Sure, this patch should fix it.

Revision history for this message
David Barth (dbarth) wrote :

Neil sent a patch for this one.

Changed in evolution:
status: Confirmed → Fix Committed
Revision history for this message
Ted Gould (ted) wrote :

I'm not sure why this didn't get updated. But the merge happened and everything. Perhaps because it was under "evolution" and not "evolution-indicator"

Changed in evolution (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Ken VanDine (ken-vandine) wrote :

This patch does fix the behavior in the general case, but not if you click "Send & Receive". The dialog spawned doesn't appear to be a window from evo_shell and you do get the notification.

Changed in evolution-indicator:
status: Fix Released → Confirmed
Revision history for this message
Neil J. Patel (njpatel) wrote :

Attached a patch that uses the _NET_ACTIVE_WINDOW_ hint on the root X window to grab the current active window, and then checks if it's resource_name is "evolution" and, if so, doesn't notify.

The patch adds two new files, but no new dependencies. Seems to work fine after a morning of testing. I've left the old code as a fallback if there is an issue getting the active window.

Revision history for this message
Ken VanDine (ken-vandine) wrote :

This patch fixes the problem, can someone create a new release?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package evolution-indicator - 0.1.12-0ubuntu1

---------------
evolution-indicator (0.1.12-0ubuntu1) jaunty; urgency=low

  * New upstream version.
    * Patch from Neil Patel to fix LP: #342429 that looks to X to figure
      out if an Evolution window is open before sending notifications.
    * Patch from Timo Jyrinki which fixes LP: #352657 where the plugin
      was using the wrong gettext domain.

 -- Ted Gould <email address hidden> Mon, 06 Apr 2009 12:09:23 -0500

Changed in evolution-indicator (Ubuntu):
status: Confirmed → Fix Released
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.