[AD] [ alleg-Bugs-3084773 ] multimonitor, window is not started on primary screen

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Bugs item #3084773, was opened at 2010-10-10 18:46
Message generated for change (Comment added) made by d_busch
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3084773&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: 4.9
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dennis Busch (d_busch)
Assigned to: Nobody/Anonymous (nobody)
Summary: multimonitor, window is not started on primary screen

Initial Comment:
I run a two screen system with Windows 7. The screens are arranged as seen in the image attached. Pressing "identify" in the hardware configuration gives the numbers seen in the upper left corners. 

However, the second screen is configured as the "primary screen" and all applications open their windows on that screen, except for the ones using Allegro. They always open the display (via al_create_display) on the wrong (1 but not primary) screen.

----------------------------------------------------------------------

>Comment By: Dennis Busch (d_busch)
Date: 2010-10-10 19:54

Message:
It seems as though windows is treating the entire area as one virtual
screen space into which it positions the monitors. 

The origin (0,0) of the virtual screen space seems to be mapped to the
upper left corner of the primary display. 

That way, my secondary displays(first adapter but not primary display)
upper left corner ends up being at (-1280, 0).

To fix that, the system initialization code (I couldn't find it yet) would
have to set the default display adapter for new displays (currently 0) to
the adapter which reports (0,0) as the upper left corner in
"win_get_monitor_info".

screenshot to illustrate the issue will be attached in a moment(ignore the
green comments in the code, that was just a lazy fix (which works to open
the window on the primary display but doesn't center the new window))

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3084773&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/