After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 436817 - Minimize to tray: window jumps
Minimize to tray: window jumps
Status: RESOLVED NOTABUG
Product: banshee
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: 2.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-08 09:23 UTC by Michael Monreal
Modified: 2008-02-16 18:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Video (515.55 KB, application/x-compressed-tar)
2007-05-08 09:31 UTC, Michael Monreal
Details

Description Michael Monreal 2007-05-08 09:23:32 UTC
I first thought this was a bug in the Compiz Window manager, but it turned out Metacity has the same problem. To reproduce:

- Activate "Select windows when the mouse moves over them" 
  in the Window Preferences
- Have a window (e.g. Firefox) maximized
- Have a banshee window (_not_ maximized) on top of that
- Now move the mouse to the tray icon and click

=> Banshee shoud minimize to the tray
=> Instead, the window jumps to its last position and gets focus
=> clicking again actually minimizes to tray

The problem seems to be that minimize to tray only works correctly
if the window has focus. Can this be fixed?
Comment 1 Michael Monreal 2007-05-08 09:31:45 UTC
Created attachment 87790 [details]
Video

A screen capture I did which shows the problem and how it works correctly if the banshee window has focus when clicking.
Comment 2 Andrew Conkling 2007-08-23 20:43:43 UTC
This is by design. The notification icon focuses the window if not focused, and minimizes it if it is focused.
Comment 3 Michael Monreal 2007-08-23 20:56:04 UTC
By design? Hmm... it's different to how about all other apps work :/
Comment 4 Andrew Conkling 2007-08-23 21:21:06 UTC
All? I know Deluge and Pidgin work this way. If I recall (it's been a while since I participated in any discussion of notification area icons), the GTK+ and/or GNOME move was towards this behavior.

All I was able to find offhand was a reference in some GNOME HIG draft: http://developer.gnome.org/projects/gup/hig/draft_hig_new/desktop-notification-area.html.
Comment 5 Michael Monreal 2007-08-23 21:30:20 UTC
Deluge does, Pidgin does not... just tested this. Anyway, what's the use of this "feature"? If the window is open anyway, clicking it to rise would be way easier than to click the tray icon?
Comment 6 Andrew Conkling 2008-02-16 04:21:58 UTC
It's for windows that may be behind others. Take Pidgin, or Banshee in Mini Mode: clicking the tray icon presents the window, at which point it can be hidden.

It's certainly an issue maybe as divided as vi vs. emacs. :P Closing it here, as Aaron and company have obviously chosen in their code.
Comment 7 Michael Monreal 2008-02-16 09:09:17 UTC
(In reply to comment #6)
> It's for windows that may be behind others. Take Pidgin, or Banshee in Mini
> Mode: clicking the tray icon presents the window, at which point it can be
> hidden.

Again, Pidgin does *not* work this way. The "right" way would be to have a check if the window is already on top (don't know if that is possible).

> It's certainly an issue maybe as divided as vi vs. emacs. :P Closing it here,
> as Aaron and company have obviously chosen in their code.
...and not ever commented on this bug :( Well, perhaps this will magically change when trunk supports this feature...
Comment 8 Andrew Conkling 2008-02-16 18:14:25 UTC
It would be possible to check if the window is *focused*, which I think is what's already happening. I don't know about it being on top AND unfocused though.

Does the problem only happen when "Select windows when the mouse moves over them" is active?