U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » TopWindow&PopUp, TrayIcon » TopWindow::SerializePlacement () on dual-head display
TopWindow::SerializePlacement () on dual-head display [message #34258] Mon, 07 November 2011 09:42 Go to previous message
Tom1
Messages: 1319
Registered: March 2007
Ultimate Contributor
Hi,

I'm having trouble using SerializePlacement() with a dual head display system. It always pulls windows stored on the secondary display (i.e. the right side display) to the primary display (i.e. left side) when restored.

I noticed changing the limit to use GetVirtualWorkArea() instead of GetWorkArea() rectifies this problem on Windows. (No idea what happens on Linux though.)

Anyway, would it be possible to have this changed in TopWindow.cpp:: TopWindow::SerializePlacement(Stream& s, bool reminimize): as follows:

	if(s.IsLoading()) {
		if(mn) rect = overlapped;
		Rect limit = GetWorkArea();


To this:

	if(s.IsLoading()) {
		if(mn) rect = overlapped;
		Rect limit = GetVirtualWorkArea();


Please?

Best regards,

Tom
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to call a new window?
Next Topic: TopWindow "WhenOpen" callback
Goto Forum:
  


Current Time: Thu May 14 04:23:15 GMT+2 2026

Total time taken to generate the page: 0.00636 seconds