<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Some inconsistencies with display events</title>
		<link>http://www.allegro.cc/forums/view/609271</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 12 Jan 2012 00:50:52 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Did a simple test today with display events and noticed two things:</p><p>- If you minimize a window (using the minimize button) and then restore from the taskbar: two <b>ALLEGRO_EVENT_DISPLAY_SWITCH_IN</b> events will fire. Is this supposed to happen or it&#39;s a bug? I would expect a single event here.</p><p>- Minimizing a window (using the same button) will fire a <b>ALLEGRO_EVENT_DISPLAY_RESIZE</b> event with event.display.width = 0 and event.display.height = 0. A bug or by design?</p><p>Platform: Windows 7<br />Allegro: 5.0.5
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (simast)</author>
		<pubDate>Wed, 11 Jan 2012 22:47:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I can&#39;t say anything about the first one, but I think the second one is logical.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (J-Gamer)</author>
		<pubDate>Wed, 11 Jan 2012 23:02:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ve mentioned those exact things several times (the width and height == 0 one at least). I hope someone eventually does something about them. In all my games I have to check if width and height are zero and ignore the event if so.</p><p>In addition, when returning from fullscreen window to windowed you do not get a resize event so I have to hack around that and emit one myself.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jmasterx)</author>
		<pubDate>Wed, 11 Jan 2012 23:05:05 +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/609271/943673#target">J-Gamer</a> said:</div><div class="quote"><p>I can&#39;t say anything about the first one, but I think the second one is logical.</p></div></div><p>

Not really? I mean minimizing does not change display size to 0, thus it shouldn&#39;t fire at all. The only events that should fire on minimize are:</p><p>1. ALLEGRO_EVENT_DISPLAY_SWITCH_OUT<br />2. ALLEGRO_EVENT_DISPLAY_LOST (if running with no preserve texture flag)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (simast)</author>
		<pubDate>Wed, 11 Jan 2012 23:12:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>At the very least, since Allegro gives a 0,0 event, it should absolutely give a width, height event when you restore, which is the biggest issue.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jmasterx)</author>
		<pubDate>Wed, 11 Jan 2012 23:14:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>In Linux minimizing only creates a single SWITCH_OUT and nothing else. Restoring creates a single SWITCH_IN. There are no resize events and I don&#39;t think there should be. Anyone knows DirectX/win32 (I don&#39;t) and wants to fix it? Else we have to wait for Trent again <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Thu, 12 Jan 2012 00:50:52 +0000</pubDate>
	</item>
</rss>
