| Ticket UUID: | 644356 | |||
| Title: | Resurrected transients part 2 | |||
| Type: | Bug | Version: | obsolete: 8.4.1 | |
| Submitter: | jenglish | Created on: | 2002-11-26 21:51:28 | |
| Subsystem: | 67. Unix Window Operations | Assigned To: | mdejong | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2002-12-02 06:38:54 | |
| Resolution: | Fixed | Closed By: | mdejong | |
| Closed on: | 2002-12-01 23:38:54 | |||
| Description: |
(Reported under KDE; replicated under 4DWm; similar behavior probably happens on any Unix WM with mulitiple desktops/workspace.) wish8.4 % toplevel .t ; wm withdraw .t ; wm transient .t . % # Now switch to a different workspace, then switch back again. % # .t reappears! If you set [wm transient .t .] before [wm withdraw .t] then this does not occur. | |||
| User Comments: |
mdejong added on 2002-12-02 06:38:54:
Logged In: YES user_id=90858 This fix looks good. I added a test case, made this change to the Windows version, and checked it in. nobody added on 2002-11-27 05:42:08: Logged In: NO Just a note that this can also happen under windows (and probably most platforms) with nothing to do with multi workspaces, just normal iconify deiconify toplevel .x toplevel .y wm withdraw .y wm transient .x . wm transient .y . (at this point you have a main window and also .x - which is transient - showing, minimize the main window & .x also goes away (but only main has a button in the icon bar) when you bring the main window back, both .x AND .y appear. Bruce Hartweg jenglish added on 2002-11-27 05:15:42: File Added - 36235: stay-withdrawn.patch Logged In: YES user_id=68433 Analysis: transient windows normally mirror the state of their master: whenever the master transitions to the Withdrawn or Iconic state Tk withdraws the associated transients, and re-maps them whenever the master transitions back to Normal. However, if a transient has been explicitly withdrawn, then it stays withdrawn. tkUnixWm.c uses the flag WM_TRANSIENT_WITHDRAWN to keep track of transients that have been explicitly withdrawn. The problem here is that the toplevel was withdrawn before it was made a transient, so that flag never gets set. The attached patch replaces WM_TRANSIENT_WITHDRAWN with a WM_WITHDRAWN flag, and sets it for all windows regardless of transience. Mo, does this look OK? (A related issue: as far as Tk can tell, there is no difference between being Iconified, on a different workspace, or "rolled-up/windowshaded", it receives an <Unmap> event in all cases.) | |||
Attachments:
- stay-withdrawn.patch [download] added by jenglish on 2002-11-27 05:15:42. [details]
