On Tue, 2007-11-27 at 12:15 +0100, Mirko Hansen wrote:
> Hey guys,
> 
> I just tried to fix the multi-screen bug mentioned here:
> http://www.amsn-project.net/forums/viewtopic.php?p=23738 ... but I
> think we won't be able to fix this. The problem is, that always after
> creating a window the proc moveinscreen is called that places the
> window on the primary screen again. So we need to get the whole
> geometry of all screens. Therefor [winfo screenwidth .] is useless, it
> always returns the width of the primary screen, independant of where
> the window to check is positioned. A call of [wm maxsize .] returns
> the geometry of all screen, but we only get the complete geometry, not
> only of one screen, and we don't get where the other screen(s) is/are
> positioned. It always returns the absolute size, but if the second
> screen is positioned left beside the primary screen, we would need
> negative coordinates to successfully move a window on that screen, but
> this information doesn't tell us anything about that. The other
> problem would be that we get "dead corners" in the case that the
> screens have different resolutions: The [wm maxsize .] merges the
> screens into one big rectangle, so there will be at least one corner
> that no screen can display. So we need another solution or we are
> unable to fix that bug. Does anyone have an idea how to be able to get
> the resolution and position of the other screens? I only found one
> article about that problem telling that tcl doesn't seem to support it
> and it uses some kind of dirty hack to detect how many screens are
> used but it doesn't really help. One way would be to let the user
> manually enter his screens and the fitting geometry or letting him
> turn off the moveinscreen-proc. Both ways are very user-unfriendly and
> not really safe but it would be a last resort ... 

What about checking if it is in the chatwindow first? If it is, don't
move it.

Sander


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel

Reply via email to