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 653061 - Tk Windows won't deiconify in Fedora 15 and Gnome 3
Tk Windows won't deiconify in Fedora 15 and Gnome 3
Status: RESOLVED OBSOLETE
Product: mutter
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2011-06-20 22:53 UTC by jerry.levan
Modified: 2018-01-25 11:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jerry.levan 2011-06-20 22:53:47 UTC
If I iconify a Tk window and then try to deiconify the window it does
not appear ;(

However it does appear in the 'overview' window. If I click on the
Tk window whilst in overview mode it does deiconify.

A simple example:

[jerry@bigbox ~]$ wish
% info patchlevel
8.5.9
% wm iconify .
% wm deiconify .

On Fedora 14 and Mac OSX the deiconify will make the window visible.

With Fedora 15 and Gnome 3. The window does not appear again until
clicked on in overview mode.

It is convenient to be able to hide the window while the GUI
is being constructed...

Is this fixable or is this a Gnome 3 'standard'

Jerry
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-06-20 23:20:19 UTC
I'm unsure what 'deiconify' means.
Comment 2 jerry.levan 2011-06-21 00:49:03 UTC
When a window is iconified it's contents are removed from the screen.

When the window is deiconified it is supposed to reappear on the screen
Comment 3 Milan Bouchet-Valat 2011-06-21 05:35:34 UTC
So you mean "minimize"? Or merely "hidden"? How does this work: you need to run code like in the bug description? Or are there graphical ways of doing that? Do Tk apps provide this feature to users, or is that just a feature of the toolkit that developers can use?

Could you explain how this worked exactly in GNOME2? i.e. how did you do this, and what were the effects.
Comment 4 Dan Winship 2011-06-21 11:28:55 UTC
iconify == minimize. It's called iconify in the spec because that's how window managers used to implement it back before Windows 95.

not sure why it's failing. it's not intentional. (And it's not because GNOME 3 has no minimize button; it fails even if you add that back.)
Comment 5 Florian Müllner 2011-06-21 11:41:47 UTC
Probably related: https://bugzilla.redhat.com/show_bug.cgi?id=693990
Comment 6 jerry.levan 2011-06-21 14:14:37 UTC
If I  use gnome-tweak-tool to enable the minimize an maximize button and click
minimize button the window vanishes from the screen and only appears in the
'overview' window, this appears to be the same as executing

   wm inconify .     ( minimze the 'root' window).

In Gnome 3 the command

   wm deiconify .    ( map the root window)

has no effect.

In Fedora 14 with Gnome 2.32 clicking the minimize button causes the window
to be cleared from the screen and the app info in the 'task' bar to change slightly.

However the deiconify command command issued from within the app will cause
the app window to appear on the screen.

In both cases I am running the same versions of Tcl and Tk.

It appears to me that the 'un-minimize' window manager function in
Gnome 3 has somehow changed and in Tk it appears to be broken,

I have a Tk workaround,

The Tk commands

wm withdraw ,   ( remove the root window, it will *not* aopear in the 'overview' mode )
...build the gui in . ( the root window)
wm deiconify ,   ( remaps the root window)

do the right thing  ie the app window will appear :)

Jerry
Comment 7 Jean Delvare 2012-01-17 15:37:57 UTC
Any progress on this? I think this is the same bug which causes Claws Mail to not appear when started under Gnome 3.2:

https://bugzilla.redhat.com/show_bug.cgi?id=693990

It would be great if this would finally get fixed.
Comment 8 Milan Bouchet-Valat 2012-01-17 15:47:46 UTC
Note: the downstream report says the bug can also happen with gtk_window_deiconify(), but only with Claws Mail.
Comment 9 Milan Bouchet-Valat 2012-01-17 15:49:12 UTC
BTW, does it happen with plain Mutter (run 'mutter --replace')?
Comment 10 Jean Delvare 2012-01-17 15:57:26 UTC
"mutter --replace" kills my session, so I can't answer this question, sorry.
Comment 11 Jasper St. Pierre (not reading bugmail) 2014-12-29 03:27:04 UTC
Have you seen this recently? The original Tk testcase seems to work and a constructed GTK+ testcase works as well.
Comment 12 Jean Delvare 2015-01-05 12:11:40 UTC
Meanwhile a workaround was added to Claws Mail:

http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2396#c23

so I can no longer reproduce this issue. Whether the root cause was fixed in Gnome 3 or not, I can't tell.