| Ticket UUID: | 571600 | |||
| Title: | new wm bug with geometry in 8.4a5 | |||
| Type: | Bug | Version: | obsolete: 8.4a5 | |
| Submitter: | vincentdarley | Created on: | 2002-06-20 11:23:38 | |
| Subsystem: | 68. Win Window Operations | Assigned To: | mdejong | |
| Priority: | 9 Immediate | Severity: | ||
| Status: | Closed | Last Modified: | 2002-06-24 12:33:23 | |
| Resolution: | Fixed | Closed By: | hobbs | |
| Closed on: | 2002-06-24 05:33:23 | |||
| Description: |
The latest 'wm' modifications have brought in a
new bug on Windows (Win2000 at least).
proc test {} {
catch {destroy .foo}
toplevel .foo
wm withdraw .foo
wm geometry .foo 510x684+2+40
wm deiconify .foo
raise .foo
}
this procedure ignores the geometry specification
that has been given to the window. In fact we can
reduce the above test to:
proc test {} {
catch {destroy .foo}
toplevel .foo
wm geometry .foo 510x684+2+40
}
Tk 8.3 and older versions of Tk 8.4 did not show
this bug.
| |||
| User Comments: |
hobbs added on 2002-06-24 12:33:23:
File Added - 25678: wmgeom.fix Logged In: YES user_id=72656 OK, this was entirely my fault, due to a bad patch to fix a warning from BoundsChecker (a Purify-like app). My commit on 6/15 included this without proper ChangeLog notes (again, my bad). IsIconic and IsZoomed should not be passed NULLs, but at least this makes things work again. Attached is the one line revert that was commited. hobbs added on 2002-06-24 12:09:24: Logged In: YES user_id=72656 #84 is Tk patch 564642, but it had no impact on tkWinWm.c, nor did did #98 (compositing) which is Tk patch 566765. I did make some other changes to the TkDisplay structure that reduced the number of extra bools represented as ints (moved to a flags var). I will check out tkWinWm.c from earlier to see if I notice any problems. mdejong added on 2002-06-24 12:02:05: Logged In: YES user_id=90858 The problem was introduced on the 14th. I just did a full build from 2002-06-15 and it does display the bug. I am now starting to this it might be TIP #84 or the photo changes Donal checked in. Does anyone have patch numbers for these patches? It really sucks tracking down CVS revisions a file at a time when a patch changes lots of files. mdejong added on 2002-06-24 11:17:21: File Deleted - 25675: File Added - 25676: tip47.patch2 mdejong added on 2002-06-24 11:17:20: Logged In: YES user_id=90858 Well, this is strange. I created a patch for tip 47 and then rolled the CVS back to 2002-06-14. After applying the attached patch, I noticed no new regressions in the windows build. The bug does not seem to have been introduced by TIP 47. It must be another patch that was introduced on or after the 14th. mdejong added on 2002-06-24 10:40:43: File Added - 25675: revert_tip47.patch mdejong added on 2002-06-24 10:33:11: File Added - 25674: tip47.patch mdejong added on 2002-06-24 06:17:17: Logged In: YES
user_id=90858
I have been looking into some test cases for the wm geom
command (there are very few and they are all platform
specific). One thing that has me bothered is the
confusion around whether an update is needed after
a wm geom command is issued. The docs for the wm
geom command mention nothing about updates.
"Otherwise the current geometry for window is
returned (this is the most recent geometry speciĀ
fied either by manual resizing or in a wm geometry
command)."
On the other hand, the Unix and Win32 implementations
both require an idle time handler to run before the
wm geom command will return the new size. Should we
change the docs to indicate that an idle tasks callback
must run before the wm geom command will return the actual
size? This matters in testing since we need to decide
what the *right* approach is before it can be tested.
The lack of tests for this feature lead to this
regression slipping by, so we need to solve that
first before dealing with the actual bug.
Here is a quick example of a test case
that should pass if your reading of the
docs leads you to believe that the wm geom
command should return what was just set.
test wm-geometry-2.4 {parse geometry} {
deleteWindows
toplevel .t
wm geometry .t 300x300+1+1
wm geometry .t
} {300x300+1+1}
This will currently fail under Win32 and Unix since
the wm geom command would return the original size
until the idle tasks are processed.
jenglish added on 2002-06-23 23:50:51: Logged In: YES user_id=68433 Can't replicate the problem under Unix; this appears to be Windows-specific. Which is odd, because the TIP 47 enhancements are all Unix/X11-specific. The only change to the Windows code was to replace TK_TOP_LEVEL with TK_TOP_HIERARCHY. jenglish added on 2002-06-23 23:38:43: Logged In: YES user_id=68433 > There is a mention of the patch in the TIP, > but I think that Joe needed to make some updates > to make it go in against the head. The patch in the TIP was against 8.4a3, and didn't apply cleanly to the HEAD at the time. Neil McKay provided a new patch against 8.4a4: http://www.eecs.umich.edu/~mckay/computer/wmenablers.84a4.patch.gz which mostly worked; two (small) hunks failed to apply, but these were straightforward to resolve by hand. The patch wrapped several changes in #ifdef blocks, which I removed, and the man page changes were prefaced with "if the wmenablers patch has been applied, then ..." which I also removed and merged the changes into the main text. Will investigate further... wilkason added on 2002-06-23 09:39:10: Logged In: YES user_id=95266 I see this bug also Win2K (with balloon help), in addition the winfo reqheight is not working with A5, for example I use wm geometry $::SA $::snackAmpSettings(minWidth)x[winfo reqheight $::SA] during startup, and the winfo reqheight is returning 1, not the proper value. This even occurs if an update is done before. Tom Wilkason hobbs added on 2002-06-23 06:15:31: Logged In: YES user_id=72656 It was not 84, that was too dead simple to cause the changes, but 47 may be likely. There is a mention of the patch in the TIP, but I think that Joe needed to make some updates to make it go in against the head. mdejong added on 2002-06-23 05:25:10: Logged In: YES user_id=90858 I did some more testing and it looks like this bug was introduced on 2002-06-14. It was either TIP 47 or TIP 84 that caused it. I would place my bets on the patch for TIP 47. Unfortunatly, I don't see a Tk patch number in the ChangeLog entry. Where can I find a version of this patch before it was applied to the CVS? I would rather not go in by hand and get all the diffs one at a time if it can be helped. hobbs added on 2002-06-22 08:29:21: Logged In: YES user_id=72656 I am seeing this problem as well on Windows. I can see it with BWidget's SelectColor::menu when it is asked to popup. It doesn't occur with ComboBox's dropdown listbox though. vincentdarley added on 2002-06-21 20:55:28: Logged In: YES user_id=32170 My last compile was 10th May, so the change was between then and now. Version 2002-05-27: works Version 2002-06-12: works (Mo 'wm' changes) Unfortunately, I tried version 2002-06-14, but it doesn't compile for me, so I can't test that. So, the change was from the 13th to now! mdejong added on 2002-06-21 05:30:13: Logged In: YES user_id=90858 What change broke this wm geom functionality? vincentdarley added on 2002-06-20 20:01:31: Logged In: YES user_id=32170 Just to clarify the bug: I'm expecting the above window to appear some 40 pixels down from the top of the screen, and 2 pixels in, but what I see is the window appearing right up in the corner at 0,0 | |||
Attachments:
- wmgeom.fix [download] added by hobbs on 2002-06-24 12:33:23. [details]
- tip47.patch2 [download] added by mdejong on 2002-06-24 11:17:21. [details]
