Menu

#2780 winfo rootx/rooty broken on Aqua

obsolete: 8.4.19
open-works-for-me
5
2011-02-01
2010-03-21
No

winfo rootx and rooty on Aqua appear to be returning values that are relative to the top left corner of the toplevel in 8.4.19, rather than the top left corner of the screen. [winfo rootx .] and [winfo rooty .] both return 0 wherever the toplevel is moved on screen.

I noticed this while migrating from Tile 0.7.6 to tile 0.8.2, when I found its combobox was behaving very badly (not responding to clicks in the popdown except to hide it, and popdown placed in the wrong place after moving the window the combobox is in). But after trying to isolate the issue to changes in Tile, I found it was doing this in my released app, too, which was recently upgraded to Tcl/Tk 8.4.19 (but still Tile 0.7.6). It was at that point that I found that rootx/rooty are returning bogus values in 8.4.19.

This was previously working with 8.4.9, so I believe this to be a regression somewhere between 8.4.9 and 8.4.19.

Discussion

  • Kevin Walzer

    Kevin Walzer - 2011-01-24
    • status: open --> open-wont-fix
     
  • Kevin Walzer

    Kevin Walzer - 2011-01-24
    • status: open-wont-fix --> closed-wont-fix
     
  • Kevin Walzer

    Kevin Walzer - 2011-02-01

    I had originally closed this as won't fix because Tk-Aqua 8.4.x / Carbon is both obsolete and unmaintained, and because I had not seen any issues like this in more recent builds of Tk (8.5 or 8.6). I decided to take another look after being contacted by the OP. Trying 8.4.19 on my Snow Leopard machine (10.6.6), I see no issue with [winfo rootx .] or [winfo rooty .]--both return the expected values. For comparison, I also ran these commands in a Cocoa build of Tk 8.6 from CVS HEAD, and got the same output.

    I'm not sure where the issue is coming from, but I am not able to reproduce it. I'll leave this open for further comments.

     
  • Kevin Walzer

    Kevin Walzer - 2011-02-01
    • status: closed-wont-fix --> open-works-for-me