<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Allegro windows show up on incorrect monitor</title>
		<link>http://www.allegro.cc/forums/view/611148</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 29 Sep 2012 07:06:31 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>So I&#39;m working with Allegro again lately, and one thing is bugging me. Whenever I start any Allegro program (I&#39;m using 5.0.7), including the A5 demos (5.0.5), they show up on the incorrect monitor. I&#39;m using Windows 7 x64, and the Allegro windows always spawn on the monitor Windows identifies as #1, instead of the monitor designated as the primary monitor.</p><p>It&#39;s not a huge issue, but it is slightly annoying!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Schyfis)</author>
		<pubDate>Fri, 28 Sep 2012 11:23:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>A similar problem: When compiling allegro programs for windows, I have to use al_set_new_window_position to make it even appear.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (J-Gamer)</author>
		<pubDate>Fri, 28 Sep 2012 16:13:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/611148/967003#target">Schyfis</a> said:</div><div class="quote"><p>It&#39;s not a huge issue, but it is slightly annoying!</p></div></div><p>How would you suggest that be fixed? If windows is telling us that monitor is #1, then it&#39;s #1. You&#39;d have to somehow swap IDs, but which ones do you swap? You could have 6 or more screens plugged in.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Fri, 28 Sep 2012 20:29:43 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Is monitor #1 the one which has the taskbar on it?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Fri, 28 Sep 2012 20:33:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/611148/967031#target">Elias</a> said:</div><div class="quote"><p>Is monitor #1 the one which has the taskbar on it?</p></div></div><p>No, that&#39;s the primary monitor. Windows will happily move monitors around, and change which is the primary, but it doesn&#39;t change the order in which they were detected. IIRC.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Fri, 28 Sep 2012 20:37:48 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Correct Thomas, monitor #1 is not the monitor with the taskbar. (That happens to be monitor #4!)</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/611148/967030#target">Thomas Fjellstrom</a> said:</div><div class="quote"><p>
How would you suggest that be fixed? If windows is telling us that monitor is #1, then it&#39;s #1. You&#39;d have to somehow swap IDs, but which ones do you swap? You could have 6 or more screens plugged in.
</p></div></div><p>
Maybe there&#39;s a way to figure out which monitor the taskbar is on, and spawn the window on that monitor?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Schyfis)</author>
		<pubDate>Fri, 28 Sep 2012 20:55:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/611148/967035#target">Schyfis</a> said:</div><div class="quote"><p>Maybe there&#39;s a way to figure out which monitor the taskbar is on, and spawn the window on that monitor?</p></div></div><p>Yeah, ok. That makes sense. In fact, you&#39;ve reminded me thats how I tried to implement it for X. It&#39;ll try and find the &quot;primary&quot; screen via a number of methods, and then fall back to screen 0. It&#39;s not perfect, and there may be a better way of finding out which screen is primary, but I bet it depends on the DE, or possibly some obscure WM_HINT.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Fri, 28 Sep 2012 21:33:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Is it because of our _al_win_get_window_center function? If we just passed CW_USEDEFAULT to CreateWindowEx in_al_win_create_window, would that do the right thing in the common case? Somebody with multiple monitors should fiddle with it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Wang)</author>
		<pubDate>Sat, 29 Sep 2012 07:06:31 +0000</pubDate>
	</item>
</rss>
