← Back to team overview

ubuntu-translations-coordinators team mailing list archive

[Bug 627195] [NEW] Window management - Apps raised from indicators sometimes dont have the focus

 

You have been subscribed to a public bug:

Ubuntu 11.10 beta
compiz 1:0.9.5.94+bzr2803-0ubuntu5
unity 4.16.0-0ubuntu1

1. open banshee, start a song in it and minimize
2. open another application lets say gnome-terminal
3. click on the sound menu and select banshee

What happens
banshee icon in the launcher wiggles and banshee main window is not shown

What should happen
banshee main window should come to focus

This is a long standing bug which Ted Gould thinks should be fixed at
window manager's level.

====Some other observations=====
The problem wont happen
1. if every other app is minimized or
2. Banshee is the only opened app or
3. after opening gnome-terminal, banshee window is closed so that it hides to the SoundMenu and opened again

=====Comment from Ted Gould=====
<om26er> tedg, Hi! any thoughts on the long standing bug 627195 ? Its been there before unity so I guess we can conclude unity not to be responsible

<tedg> om26er, My thought is that window managers should $%#$ get
fixed... though I haven't convinced smspillaz of it yet.

=====The good rule=====
3v1n0: Indicators should present the application windows by passing to them the timestamp of the menu item activation event.

Unfortunately for indicator-sound, this is not trival as it sounds, since it needs a change to the MPRIS dbus specification.
See comment https://bugs.launchpad.net/ayatana-design/+bug/627195/comments/26 for more informations.

For what concerns libappindicator based indicators (such as the one used by tomboy), since it's not currently possible in libdbusmenu to pass the event during activation (so that clients will be able to get the proper timestamp using gtk_get_current_event_time), there are two "hackish" ways:
1. Use the server time to present a window:
   https://bugzilla.gnome.org/show_bug.cgi?id=688830
2. Get the event timestamp from the dbus-menu linked to the gtk-menus:
   https://archive.is/2tLX6
3. Qt applications workaround: http://is.gd/WnW9eN

Window managers will obey to it.

===================================

SRU for sni-qt:

[Test case]

git clone https://github.com/3v1n0/indicators-examples-snaps
cd indicators-examples-snaps/qt4-systray
qmake-qt4
./systray

Close the app, now try to restore it from in the indicator (after having played with some app writing text on it such as gnome-terminal or gedit).
The app should be in foreground now

** Affects: ayatana-design
     Importance: Critical
     Assignee: John Lea (johnlea)
         Status: Fix Committed

** Affects: indicator-messages
     Importance: High
     Assignee: Marco Trevisan (Treviño) (3v1n0)
         Status: Fix Released

** Affects: indicator-messages/13.04
     Importance: High
     Assignee: Marco Trevisan (Treviño) (3v1n0)
         Status: Fix Released

** Affects: indicator-sound
     Importance: High
     Assignee: Marco Trevisan (Treviño) (3v1n0)
         Status: Fix Released

** Affects: indicator-sound/13.04
     Importance: High
     Assignee: Marco Trevisan (Treviño) (3v1n0)
         Status: Fix Released

** Affects: libdbusmenu
     Importance: Medium
         Status: Triaged

** Affects: mpris
     Importance: High
         Status: Confirmed

** Affects: ubuntuone-client
     Importance: Undecided
     Assignee: Marco Trevisan (Treviño) (3v1n0)
         Status: Fix Committed

** Affects: ubuntu-translations
     Importance: High
         Status: Invalid

** Affects: empathy (Ubuntu)
     Importance: Undecided
     Assignee: Marco Trevisan (Treviño) (3v1n0)
         Status: Fix Released

** Affects: indicator-messages (Ubuntu)
     Importance: Undecided
     Assignee: Marco Trevisan (Treviño) (3v1n0)
         Status: Fix Released

** Affects: indicator-sound (Ubuntu)
     Importance: Undecided
     Assignee: Marco Trevisan (Treviño) (3v1n0)
         Status: Fix Released

** Affects: libdbusmenu (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Affects: sni-qt (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: tomboy (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Affects: ubuntuone-client (Ubuntu)
     Importance: Undecided
     Assignee: Marco Trevisan (Treviño) (3v1n0)
         Status: Fix Released

** Affects: empathy (Ubuntu Xenial)
     Importance: Undecided
         Status: New

** Affects: indicator-messages (Ubuntu Xenial)
     Importance: Undecided
         Status: New

** Affects: indicator-sound (Ubuntu Xenial)
     Importance: Undecided
         Status: New

** Affects: libdbusmenu (Ubuntu Xenial)
     Importance: Undecided
         Status: New

** Affects: sni-qt (Ubuntu Xenial)
     Importance: Medium
         Status: Fix Committed

** Affects: tomboy (Ubuntu Xenial)
     Importance: Undecided
         Status: New

** Affects: ubuntuone-client (Ubuntu Xenial)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug exbacklog lucid onew u1-notrack ubuntu-unity udo udp
-- 
Window management - Apps raised from indicators sometimes dont have the focus
https://bugs.launchpad.net/bugs/627195
You received this bug notification because you are a member of Ubuntu Translations Coordinators, which is subscribed to Ubuntu Translations.