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 727926 - Keyserver results window can appear behind Seahorse's main window
Keyserver results window can appear behind Seahorse's main window
Status: RESOLVED FIXED
Product: seahorse
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Seahorse Maintainer
Seahorse Maintainer
Depends on:
Blocks:
 
 
Reported: 2014-04-09 23:52 UTC by Federico Mena Quintero
Modified: 2014-04-15 14:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Set the main Seahorse window as the transient parent for the results window (3.47 KB, patch)
2014-04-09 23:53 UTC, Federico Mena Quintero
committed Details | Review

Description Federico Mena Quintero 2014-04-09 23:52:26 UTC
Seahorse's main window creates the "Find remote keys" window.  When you type your search terms and click OK, that window disappears.  A little later, the "Remote keys containing %s" window appears, but it doesn't have Seahorse's main window as its transient parent.  This can cause the new window to appear behind the original one.

The following patch fixes this.
Comment 1 Federico Mena Quintero 2014-04-09 23:53:51 UTC
Created attachment 273947 [details] [review]
Set the main Seahorse window as the transient parent for the results window
Comment 2 Stef Walter 2014-04-10 06:16:19 UTC
Is this a work around for GNOME not displaying new windows on top? Is there another way to accomplish this? Because I sorta thought of the two windows as independent of one another. For example you can close the main window, leaving the 'remote keys' window open.

But if there's no other way to fix this, then I'm fine with making it transient for the main window.
Comment 3 Federico Mena Quintero 2014-04-14 19:49:58 UTC
Hmm, I didn't know you could leave the "remote keys" window open.

The problem is that the window manager has no way of knowing that the results window is to be the "next" window in the user's focus.  It could be a random window that some random program popped up, and the WM is trying to keep it from stealing your focus.
Comment 4 Stef Walter 2014-04-15 14:40:44 UTC
I guess given the alternatives it makes sense to commit this for now.
The way that the desktop decides which windows to put in front is *really*
annoying. I often run into silly bottom of the screen notifications
for stuff I just opened, which leads to three extra clicks in order to
show something :S