Automated mail by fx, on behalf of aku...@sh... Ticket Change [a365ded23640ac8aebfd98906447ab0b0c8bc6e1] [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-05-22T14:43:40.504 Details http://core.tcl.tk/tk/tinfo?name=a365ded23640ac8aebfd98906447ab0b0c8bc6e1 Ticket http://core.tcl.tk/tk/tktview/c95d4691ff8723b47c820081ce50688cf04911f7 Changed Fields icomment: Brad, about your comment below dated 2016-04-23 16:51:07: I don't see this as wrong. With xrandr you set one *single* big screen, not two. The two monitors make up a single screen as far as the X server is concerned. On Linux I have made a bit of research in the code, and it's quite simple: XOpenDisplay() does the entire job, checks for different screens presence and so on. You can check how many screens it finds by applying the following little patch: Index: generic/tkWindow.c ================================================================== --- generic/tkWindow.c +++ generic/tkWindow.c @@ -530,10 +530,11 @@ if ((strncmp(dispPtr->name, screenName, length) == 0) && (dispPtr->name[length] == '\\0')) { break; } } +printf("ScreenCount(dispPtr->display): %d\ ", ScreenCount(dispPtr->display)); if (screenId >= ScreenCount(dispPtr->display)) { Tcl_SetObjResult(interp, Tcl_ObjPrintf( "bad screen number \\"%d\\"", screenId)); Tcl_SetErrorCode(interp, "TK", "DISPLAY", "SCREEN_NUMBER", NULL); return NULL; I have now built a real (i.e. not in a VM) Linux Debian 8 configuration with two monitors just to investigate the present ticket, and like you I only have one screen reported by X. I think that configuring X differently, so that instead of one big screen it sees two separate screens should be possible (how? tune xorg.conf?) Then in Tk the behaviour should be already OK with no change in the Tk code. I do not think Tk has a bug (in the Linux implementation). login: fvogel ------------------------------------------------------------ See Tcl/Tk development @ http://core.tcl.tk/ ------------------------------------------------------------ |