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 121556 - Impossible to minimize an app by clicking on its task bar entry if a modal dialog has the focus
Impossible to minimize an app by clicking on its task bar entry if a modal di...
Status: RESOLVED FIXED
Product: libwnck
Classification: Core
Component: general
git master
Other Linux
: High normal
: ---
Assigned To: libwnck maintainers
libwnck maintainers
: 160790 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-09-05 17:59 UTC by Julien Olivier
Modified: 2005-07-24 14:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Don't repeatedly focus the transient; if it has focus, then we should minimize :-) (2.78 KB, patch)
2005-01-11 19:14 UTC, Elijah Newren
accepted-commit_now Details | Review

Description Julien Olivier 2003-09-05 17:59:42 UTC
Description of Problem:

If you have an application with a modal dialog,
and you click twice on its task bar entry (once to
focus it, twice to minimize it), it tries to
minimize the modal dialog but fails.

I think it should minimize the parent window (the
application) instead of its modal dialog.

Steps to reproduce the problem:
1. Open Evolution
2. Click on send/receive
3. Click on Evolution entry in the task bar twice

Actual Results:

The send/receive dialog is focused

Expected Results:

Evolution should be minimized

How often does this happen? 

Always
Comment 1 Havoc Pennington 2003-09-26 02:55:16 UTC
Arguably metacity should minimize transients along with parents, but I
don't think it should minimize parents along with transients. If that
makes sense.

Basically if libwnck is going to focus the dialog if you activate the
parent, it should minimize the parent if the dialog is active when
parent is clicked. And also display the parent as active in window list
when the dialog is active.

Or something like that anyway.
Comment 2 Julien Olivier 2003-09-26 09:26:49 UTC
Yes, that's what I meant. Thanks for rephrasing it in a more accurate
way :)
Comment 3 Elijah Newren 2004-03-08 17:21:13 UTC
Perhaps this is another reason to create a _NET_MINIMIZE_WINDOW hint
(see bug 107681) so that we can just let Metacity do all the work?
Comment 4 Elijah Newren 2004-10-19 21:44:37 UTC
I believe the "And also display the parent as active in window list
when the dialog is active." is already filed as bug 102663.  I'm guessing the
other half is a Metacity issue, so I'm reassigning. 
Comment 5 Elijah Newren 2005-01-11 19:14:00 UTC
Created attachment 35843 [details] [review]
Don't repeatedly focus the transient; if it has focus, then we should minimize  :-)
Comment 6 Elijah Newren 2005-01-11 19:15:01 UTC
Oh, and I was wrong about reassigning this to Metacity, so I'm sending it back
to libwnck...
Comment 7 Havoc Pennington 2005-01-11 19:48:55 UTC
Comment on attachment 35843 [details] [review]
Don't repeatedly focus the transient; if it has focus, then we should minimize  :-)

Looks good to me
Comment 8 Elijah Newren 2005-01-11 19:58:57 UTC
committed.
Comment 9 Elijah Newren 2005-07-24 14:04:30 UTC
*** Bug 160790 has been marked as a duplicate of this bug. ***