| Ticket UUID: | 632816 | |||
| Title: | cannot remove transient | |||
| Type: | Bug | Version: | obsolete: 8.4.0 | |
| Submitter: | markgsaye | Created on: | 2002-11-03 07:27:44 | |
| Subsystem: | 67. Unix Window Operations | Assigned To: | jenglish | |
| Priority: | 7 High | Severity: | ||
| Status: | Closed | Last Modified: | 2003-10-16 03:04:30 | |
| Resolution: | Fixed | Closed By: | jenglish | |
| Closed on: | 2003-10-15 20:04:30 | |||
| Description: |
The following should make the toplevel .t non-transient, but it retains some partially-transient behaviour ( see http://wiki.tcl.tk/3542 ) toplevel .t wm withdraw .t update idletasks wm transient .t "" wm deiconify .t Toplevel .t remains 'in front' or 'on top' of the main window.. I see the same behaviour in 8.3.4 and 8.4.0 on Linux, but not on Windows. | |||
| User Comments: |
jenglish added on 2003-10-16 03:04:30:
Logged In: YES user_id=68433 Patch comitted. tests/unixWm.test : r1.34 -> r1.35 unix/tkUnixWm.c : r1.37 -> r1.38 jenglish added on 2003-10-12 01:21:19: File Added - 64084: tk-wm-transient.patch Logged In: YES user_id=68433 Attached patch should fix the problem. jenglish added on 2003-10-12 00:34:51: Logged In: YES user_id=68433 More info: [wm transient $w ""] sets the WM_TRANSIENT_FOR hint to "None", instead of removing the property. AFAICT, this is not legal according to the ICCCM (and the consensus among WM authors seems to be that setting WM_TRANSIENT_FOR to None, the root window, or the same window is, although a fairly common practice, not quite right.) However, the EWMH spec says: "If the WM_TRANSIENT_FOR property is set to None or Root window, the window should be treated as a transient for all other windows in the same group. It has been noted that this is a slight ICCCM violation, but as this behavior is pretty standard for many toolkits and window managers, and is extremely unlikely to break anything, it seems reasonable to document it as standard." (http://pdx.freedesktop.org/Standards/wm-spec/wm-spec-1.3.html, section "Implementing enhanced support for application transient windows"). So the behaviour you're seeing under KDE is actually the "right thing" according to EWMH, and Tk is doing the wrong thing. Raising priority... markgsaye added on 2002-11-07 23:07:07: Logged In: YES user_id=264793 This bug is only apparent with KDE 3.0.3 window manager (kwin 0.95). Cannot replicate with enlightenment, blackbox, xfce, icewm. jenglish added on 2002-11-04 08:07:36: Logged In: YES user_id=68433 What window manager are you using (and what version)? FWIW, I can't replicate the problem (tried various combinations of metacity, Sawfish, 4DWM; and Tk 8.3.4/8.4/CVS HEAD). I can do a more exhaustive test on Monday -- but chances are this is a WM bug, not a Tk bug. If it's a bug at all. The truth is, the ICCCM makes no guarantees at all about how transient windows should be treated; just about any behaviour is allowed. If a particular WM does something that makes Tk apps unusable the core can try to work around it, but basically you shouldn't expect [wm transient ...] to do anything specific. | |||
Attachments:
- tk-wm-transient.patch [download] added by jenglish on 2003-10-12 01:21:19. [details]
