From: Roland S. <ro...@on...> - 2012-03-29 13:02:37
Attachments:
tk_win_multihead.patch
|
Hi... I am relatively new to tcl/tk so don't judge me too hard if I am doing something wrong. And I hope I am here at the right location with my email. My motivation to use tcl/tk is to make insight (GNU Debugger with Tcl/Tk UI) more nicely working on windows. Especially 64bit (mingw-w64). I am quite far with it, but found a little problem in tk's screen handling for windows (I am using current tk 8.6 sources from fossil). While I am new to tcl/tk I am not new to C and programming on windows, linux and mac. As far as I understand tk supports multiple screens (monitors). The implementation on windows is made that way that it always presents one screen to the user, even when the system contains more than one screen (dual/multihead). When using tk's winfo screenwidth/height it always returns the widht/height of the primary monitor on windows. When there are applications (like insight) that use these informations to limit appearance of eg. tooltips and window positions this is little bad. Stored window positions can not be restored and tooltips are limited to the first screen. The most ideal solution would be to also have the multiple screens on windows reflected in the internal structures of tk's screens. This would involve bigger changes in the windows code of tk. But why not (as a first simple shot) treat the whole (big) virtual working area spread over different physical screens as one big screen to tk. This would just require a small 4 line patch to tk (which you can find attached to this email). This small change lets all multi/dualhead problems at least in insight pass away. What do you think? Roland |
From: Jan N. <nij...@us...> - 2012-03-29 13:29:53
|
Op 29 maart 2012 14:41 heeft Roland Schwingel <ro...@on...> het volgende geschreven: > When there are > applications (like insight) that use these informations to limit appearance > of eg. tooltips and window positions this is little bad. Stored window > positions can not be restored and tooltips are limited to the first screen. That sounds like a bug to me. > But why not (as a first > simple shot) treat the whole (big) virtual working area spread over > different physical screens as one big screen to tk. > > This would just require a small 4 line patch to tk (which you can find > attached to this email). This small change lets all multi/dualhead problems > at least in insight pass away. > > What do you think? I think that's a good idea. The way to continue is file a bug report in sourceforge (https://sourceforge.net/tracker/?group_id=10894&atid=110894). You can do that as anonymous, but if you have a sourceforge account then you can do it under your name. You can assign it to me. Regards, Jan Nijtmans |