| 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: | jan.nijtmans | |
| Priority: | 5 Medium | Severity: | Important | |
| Status: | Closed | Last Modified: | 2026-10-22 17:22:36 | |
| Resolution: | Fixed | Closed By: | serhiy.storchaka | |
| Closed on: | 2026-10-01 18:58:32 | |||
| 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: |
serhiy.storchaka added on 2026-10-01 18:58:32:
Merged into main, core-9-0-branch and core-8-6-branch by Jan ([9a32b4c847], [8a03a55845], [dff1adf895]). Fixed in 9.1.0, 9.0.5 and 8.6.19. jan.nijtmans added on 2026-09-23 13:33:17: Another wonderful analysis by Serhiy Storchaka. This should go into 9.1, 9.0 and 8.6. I'll just wait for tomorrow's CI build. serhiy.storchaka added on 2026-09-19 14:08:24: This also makes the test event-86299fe7ce fail under mutter, see [2a13bf6a3a]: after wm iconify . in event-9.2 the wm deiconify . in the setup of the later tests does nothing, so . stays minimized. The test passes with the branch. serhiy.storchaka added on 2026-09-18 17:11:26: Reproduced with Mutter 50: a minimized window stays mapped and only gets _NET_WM_STATE_HIDDEN, so Tk reported "normal" and wm deiconify did nothing. Fixed on branch x11-wm-hidden-state in [144bb549d6]: wm state reports "iconic" when the window manager has set _NET_WM_STATE_HIDDEN, and wm deiconify sends a _NET_ACTIVE_WINDOW request to unminimize such a window. <Map> and <Unmap> events still follow the real map state. tombert added on 2019-11-14 21:18:04: For reference: https://core.tcl-lang.org/tk/tktview/ee3361a3ad36260b4eedbbf3fa920bf38b570c1f | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki