Automated mail by fx, on behalf of aku...@sh... Ticket Change [7136558f2df9da7c08aa49970fdf1f38a3e72d4f] [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-23T12:41:33.122 Details http://core.tcl.tk/tk/tinfo?name=7136558f2df9da7c08aa49970fdf1f38a3e72d4f Ticket http://core.tcl.tk/tk/tktview/c95d4691ff8723b47c820081ce50688cf04911f7 Changed Fields icomment: Many thanks for your feedback! FreeBSD and Linux: Your test on FreeBSD is clear to me. FreeBSD also has the same issue as Windows regarding screenwidth/height. Linux is probably not different but if you can check that would be appreciated, thanks. OK, I will (maybe) look at this for Linux later. Windows: Regarding Windows, I don't understand your results. Was your check with the same monitors as for FreeBSD? You do not give the resolution of each monitor, and their relative arrangement in space. Besides, I hope your test didn't run from the bug fix branch "bug-c95d4691ff"? Because (I believe) I have fixed screenwidth/height for Windows in that branch and you should get the correct screenwidth/height depending on what monitor the window you pass is displayed. Or does my fix not work for you perhaps? Finally, about "wonder if "fixing" windows would break everybody's code": I don't think so. It's the opposite: people's code is broken now and fixing [winfo screenwidth/height ...] would fix their code. In my opinion, [winfo screenwidth/height ...] should return the size of the monitor on which the given window is displayed (there exist fallbacks in the API to deal with the case when the window is partially displayed on several monitors). Note that I'm not discussing the introduction of new commands to get the monitors resolution, because that is precisely the job of the existing [winfo screenwidth/height ...], which get it wrong except when considering the primary monitor. Currently it appears that people use [winfo screenwidth/height ...] to get numbers that are correct when they mean the primary monitor, or probably wrong when using another monitor. In the latter case, it only matters when the second monitor has different resolution than the primary one. This is not always the case. And when it has different resolution, it is usually not *very* different because people get monitors more or less at the pace of technology changes. Nobody I think has a virtual screen composed of a 1920x1080 full HD ...((truncated)) login: fvogel ------------------------------------------------------------ See Tcl/Tk development @ http://core.tcl.tk/ ------------------------------------------------------------ |