GNOME Bugzilla – Bug 653061
Tk Windows won't deiconify in Fedora 15 and Gnome 3
Last modified: 2018-01-25 11:01:33 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
I'm unsure what 'deiconify' means.
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
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.
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.)
Probably related: https://bugzilla.redhat.com/show_bug.cgi?id=693990
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
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.
Note: the downstream report says the bug can also happen with gtk_window_deiconify(), but only with Claws Mail.
BTW, does it happen with plain Mutter (run 'mutter --replace')?
"mutter --replace" kills my session, so I can't answer this question, sorry.
Have you seen this recently? The original Tk testcase seems to work and a constructed GTK+ testcase works as well.
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.