<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>al_get_window_position returns different values than expected</title>
		<link>http://www.allegro.cc/forums/view/611642</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 18 Dec 2012 09:58:07 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><span class="source-code"><a href="http://www.allegro.cc/manual/al_get_window_position"><span class="a">al_get_window_position</span></a><span class="k2">(</span>...<span class="k2">)</span></span> returns the client rectangle x and y coordinates and not the actual window coordinates.</p><p>When you do following to window with borders:
</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/al_get_window_position"><span class="a">al_get_window_position</span></a><span class="k2">(</span>display, <span class="k3">&amp;</span>x, <span class="k3">&amp;</span>y<span class="k2">)</span><span class="k2">;</span>
<a href="http://www.allegro.cc/manual/al_set_window_position"><span class="a">al_set_window_position</span></a><span class="k2">(</span>display, x, y<span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

You will notice that it moves.<br />It also happens with frameless windows when you run the program in a sandbox (tried avast! Free Antivirus autosandboxing).</p><p>I only tested it on Windows with allegro 5.0.7 so I don&#39;t know if the same behavior applies to Linux and Mac.</p><p>Is this a bug or intentional?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Shoozza)</author>
		<pubDate>Tue, 18 Dec 2012 08:56:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>IMO, if that code causes the window to move, then Allegro is buggy.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Tue, 18 Dec 2012 09:58:07 +0000</pubDate>
	</item>
</rss>
