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 561131 - zenity windows don't appear with the focus
zenity windows don't appear with the focus
Status: RESOLVED FIXED
Product: zenity
Classification: Core
Component: general
2.26.x
Other All
: Normal normal
: ---
Assigned To: Zenity Maintainers
Zenity Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-11-16 23:12 UTC by Jean-Philippe Fleury
Modified: 2009-08-06 15:43 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
patch (5.60 KB, patch)
2009-01-07 16:41 UTC, Matt Keenan (IRC:MattMan)
none Details | Review
fix-focus.patch adapted for 2.26.0 (5.13 KB, patch)
2009-06-05 19:52 UTC, kujub
none Details | Review

Description Jean-Philippe Fleury 2008-11-16 23:12:41 UTC
Please describe the problem:
When a script uses zenity to display information, the zenity window doesn't open with the focus, so we have to click on the windows list of the task bar to read information shown by the zenity window.

Steps to reproduce:
1. In a terminal, write this:

zenity --info --text="Un message."

and press Enter.

Actual results:
The zenity window appears under the terminal, so we have to click on the task bar to show zenity.

Expected results:
zenity should open with the focus, so over the terminal.

Does this happen every time?
Yes.

Other information:
Comment 1 Frantisek Boranek 2008-11-25 19:14:23 UTC
Zenity create a active window in previously version.
Zenity create a inactive window now.
This change of behaviour be troubling.
zenity –version 2.24.0
Qt: 3.3.8b
KDE: 3.5.10
KDesktop: 3.5.10
Comment 2 Matt Keenan (IRC:MattMan) 2009-01-07 16:41:37 UTC
Created attachment 125942 [details] [review]
patch

I really think this is a regression, following patch, taken from 
ubuntu bug : https://bugs.launchpad.net/ubuntu/+source/zenity/+bug/272083
corrects the issue.
Comment 3 Frantisek Boranek 2009-01-07 21:52:58 UTC
This patch fixed the issue. You may mark this bug as RESOLVED. Thanks :)
Comment 4 Jean-Philippe Fleury 2009-01-07 22:34:13 UTC
(In reply to comment #3)
> You may mark this bug as RESOLVED.

I think that we must wait for the inclusion of the patch in the zenity release.
Comment 5 kujub 2009-06-05 19:49:53 UTC
I can confirm this is still not fixed in 2.26.0 on ArchLinux 686.
Comment 6 kujub 2009-06-05 19:52:14 UTC
Created attachment 136036 [details] [review]
fix-focus.patch adapted for 2.26.0
Comment 7 Lucas Rocha 2009-08-06 15:43:33 UTC
Pushed a more updated patch to the .ui file. Thanks.