Re: [AD] [ alleg-Bugs-2052840 ] ALLEGRO_EVENT_DISPLAY_SWITCH_IN |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Coordination of admins/developers of the game programming library Allegro" <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] [ alleg-Bugs-2052840 ] ALLEGRO_EVENT_DISPLAY_SWITCH_IN
- From: "Peter Hull" <peterhull90@xxxxxxxxxx>
- Date: Sat, 23 Aug 2008 22:07:22 +0100
When I was doing the OSX implementation I looked in wnewwin.c and saw
that event being posted in response to WM_ACTIVATEAPP and not
WM_ACTIVATE. I am a bit rusty on Windows but I thought that
WM_ACTIVATEAPP was only sent when the newly-activated window belongs
to a different app from the previously active window. Apologies for
any confusion.
Pete
On Sat, Aug 23, 2008 at 9:49 PM, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> On Sat, August 23, 2008 2:21 pm, Elias Pschernig said:
>> On Sat, 2008-08-23 at 14:17 -0600, Trent Gamblin wrote:
>>> On Sat, August 23, 2008 10:58 am, Peter Hull said:
>>> > Is this event fired when a window switches in (as the name
>>> suggests)
>>> > or when the app does (as AFAICS the windows implementation
>>> does)?
>>> > I've
>>> > got it doing the former on OS X, so if you flick between two
>>> windows
>>> > you get one switch out and one switch in.
>>> >
>>> > Pete
>>>
>>> Then you have it implemented correctly, I think.
>>>
>>
>> Hm, I did it the other way for X11, i.e. when you switch from one
>> window
>> in your app to another window in your app, you get a switch out
>> event
>> for one ALLEGRO_DISPLAY and a switch in for the other one - even
>> though
>> the app itself of course is always active.
>>
>> So, how does it work in Windows?
>
> Yes, that's how I meant is the right way.
>
> Trent :{)>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
>