From mint-bounce@lists.fishpool.fi  Wed May 21 14:28:06 2008
X-ME-UUID: 20080521161402731.B28177000084@mwinf2e17.orange.fr
Date: Wed, 21 May 2008 18:13:51 +0200
From: Patrice Mandin <mandin.patrice@orange.fr>
To: Mint list <mint@fishpool.com>
Subject: Re: [MiNT] Iconified windows and button events under XaAES
Message-Id: <20080521181351.15205fae.mandin.patrice@orange.fr>
In-Reply-To: <0018da00.019a88ca2b20@smtp.freeola.net>
References: <MGENLBOKEINMOMACHMKGMEPJFKAA.joska@online.no>
	<0018da00.019a88ca2b20@smtp.freeola.net>
Organization: Chez moi
X-Mailer: Sylpheed version 2.3.0beta5 (GTK+ 2.8.20; i486-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: mandin.patrice@orange.fr
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>

Le Mon, 20 May 2008 21:16:16 +0200 (GMT)
Peter Slegg <p.slegg@scubadivers.co.uk> a _crit:

> On Tue, 20 May 2008 22:29:54 , "Jo Even Skarstein" <joska@online.no> wrote:
> > > -----Original Message-----
> > > From: mint-bounce@lists.fishpool.fi
> > > [mailto:mint-bounce@lists.fishpool.fi]On Behalf Of J. F. Lemaire
> > > Sent: Sunday, May 18, 2008 9:14 AM
> > > To: mint
> > > Subject: [MiNT] Iconified windows and button events under XaAES
> > >
> > >
> > > I can't get iconified windows under XaAES to trigger events. It's as if
> > > as soon as a window is iconified the AES no longer registers button
> >
> > A brief look in the code suggests that this should work, but I'm probably
> > wrong. I have never tried to process button-events on a iconified window.
> >
> > > events in it. Aren't iconified windows supposed to behave more or less
> > > like normal windows? I haven't found the various documentations
> > > particularly clear on that point.
> >
> > IMHO it's not logical to interact with the contents of an iconified window.
> > It's a representation of the actual contents, not a mini-window intended for
> > interaction. Un-iconify the window if you need to interact with it's
> > contents.
> >
> > > that I tried his MyJester application under NAES back in the days. This
> > > app displays pictures in an iconified window and when clicked opens a
> > > bubblegem message. It worked under NAES but nothing happens under
> > > XaAES, which leads me to believe that my own application is not at
> > > fault.
> >
> > It also suggests that I'm wrong when I assume that it should work under
> > XaAES ;-) So I tried it, and I couldn't get any mouse events on iconified
> > windows either.
> 
> I tried MyJester too. It doesn't work under XaAES but it used to
> work under Naes. I always thought it quite clever/strange that
> an iconified window could do this.

Because an iconified window is just that: A smaller window, with an 'iconified'
state associated to it. You can still draw whatever you want in it.

In SDL, there is SDL_APPACTIVE (true/false) events that I send to the application
when you iconify/uniconify your SDL application. In Doom, I simply respond to
'iconify window' by triggering a pause event (I don't redraw the window content,
but I could draw some logo instead). When you uniconify Doom, you see it's in
paused mode.

Now I don't remember in various AES documentation (Compendium or elsewhere) that
windows could not receive some events because they are iconified.

-- 
Patrice Mandin
WWW: http://pmandin.atari.org/
Programmeur Linux, Atari
Sp_cialit_: D_veloppement, jeux


