Currently running on Ubuntu 18.04.2 LTS with self-compiled TclTk 8.6.9
History:
https://groups.google.com/forum/#!topic/comp.lang.tcl/r7tm-swRWpE
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1827738
https://gitlab.gnome.org/GNOME/mutter/issues/589
Summary:
* [winfo state] does not return the iconic state.
* There is no event that fires when the window gets iconified.
* Commands to iconify/deiconify do not work.
Reason (confirmed by gnome group):
Window managers now leave the state mapped so that a preview is available even in iconic state. The iconic state is available in the "Window manager hints" where window type gets "hidden" in case it is iconic.
For testing one can use xwininfo or xprop querying the mapped state. Use [xwininfo -wm] to query the window type.
Tcl/Tk test-code:
% toplevel .test
% wm state .test
normal
# Now minimize window
% wm state .test
normal
Is this something that can get fixed still in 8.6? Maybe by patch?
thx
|