Tk Source Code

View Ticket
Login
Ticket UUID: 3131699cb421ec1de2b6fa08ff0835dd34eff3cb
Title: Mapped/Unmapped and Iconic State Problems
Type: Bug Version: 8.6
Submitter: tombert Created on: 2019-05-07 08:27:16
Subsystem: 67. Unix Window Operations Assigned To: nobody
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2019-11-14 21:18:04
Resolution: None Closed By: nobody
    Closed on:
Description:
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
User Comments: tombert added on 2019-11-14 21:18:04:
For reference: https://core.tcl-lang.org/tk/tktview/ee3361a3ad36260b4eedbbf3fa920bf38b570c1f