| Ticket UUID: | 1086049 | |||
| Title: | Bug in wm attributes -topmost | |||
| Type: | Bug | Version: | obsolete: 8.4.9 | |
| Submitter: | damonc | Created on: | 2004-12-15 20:37:44 | |
| Subsystem: | 68. Win Window Operations | Assigned To: | hobbs | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2005-12-01 14:36:31 | |
| Resolution: | Fixed | Closed By: | hobbs | |
| Closed on: | 2005-12-01 07:36:31 | |||
| Description: |
The following script illustrates the problem:
bind . <1> {
wm attributes %W -topmost [expr [wm attributes %W
-topmost] ? 0 : 1]
}
The script must be written out to a file and
double-clicked to start. It seems to work fine when a
console is present or if the code is sourced into a
console.
Clicking on the window puts the window in topmost mode.
Clicking again will take it out, but Windows still
thinks it is a topmost window.
The attributes say that the window is no longer a
topmost, but Windows still treats it as one.
This works properly when tested against Tk 8.4.3.
System: Windows XP (SP2)
Release: ActiveTcl 8.4.9.0
| |||
| User Comments: |
hobbs added on 2005-12-01 14:36:30:
Logged In: YES user_id=72656 Windows was doing really weird stuff with window positioning, as the style bit was set appropriately. Forced an extra SetWindowPos in there and it works. In 8.4.12 and 8.5a4. sachas added on 2005-01-24 16:40:18: Logged In: YES user_id=294281 I can confirm this bug on 8.5a2/Win2k and proper behaviour on 8.4.6/Win2k (even though, the window position gets corrupted there). The presence of a second (or third...) toplevel window devinitely has an influence on the somewhat erratic behaviour, but it still does not work correctly. Notice also, that using the SetWindowPos function directly (via a C extension) shows the expected behaviour. damonc added on 2004-12-16 03:51:32: Logged In: YES user_id=50387 I am seeing the problem with even more than one window. It has very weird conditions under which I can reproduce it. hobbs added on 2004-12-16 03:47:02: Logged In: YES user_id=72656 It appears that any second toplevel in existence may make this function "correctly". I believe that it may be due to the SetWindowPos handling in tkWinWm.c:UpdateWrapper when there is only a single window. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki