Automated mail by fx, on behalf of aku...@sh... Ticket Change [3351fb3f65fd6daf6924a0f4ff600f25aa1d1038] [Ticket [c95d4691ff8723b4|c95d4691] winfo screenheight w/dual monitors returns the screen height of the primary display status still Open with 3 other changes] By fvogel For Tk Source Code On 2016-04-24T20:28:35.234 Details http://core.tcl.tk/tk/tinfo?name=3351fb3f65fd6daf6924a0f4ff600f25aa1d1038 Ticket http://core.tcl.tk/tk/tktview/c95d4691ff8723b47c820081ce50688cf04911f7 Changed Fields icomment: Committed [671c976f] in branch "multiscreens": - Tk now knows about all screens (monitors), not only about the primary one - screenheight and screenwidth, and all values that depend on them, are now correct for each monitor as long as the windows are created with explicit -screen parameter - resolution changes are now tracked correctly by Tk for each monitor With this commit the following script is now working as expected: package require Tk winfo screenheight . ; # info from primary monitor winfo screen . ; # :0.0 toplevel .t -screen :0.1 winfo screen .t ; # :0.1 (NEW!) winfo screenheight .t ; # info from secondary monitor (NEW!) <change secondary monitor resolution> winfo screenheight .t ; # updated info from secondary monitor (NEW!) <TODO>: - Find a way to test all this without false alarms (when there is a single monitor attached) - When moving a window from one screen to another, should its screen info "follow"? - Fix this problem on Linux and MacOSX as well. login: fvogel ------------------------------------------------------------ See Tcl/Tk development @ http://core.tcl.tk/ ------------------------------------------------------------ |