Giel van Schijndel schreef:
> Giel van Schijndel schreef:
>> Dennis Schridde schreef:
>>> Am Mittwoch, 9. Mai 2007 schrieb Jose Ivey:
>>>> Dennis Schridde wrote:
>>>>> Am Mittwoch, 9. Mai 2007 schrieb The Watermelon:
>>>>>> On 5/7/07, Dennis Schridde <[EMAIL PROTECTED]> wrote:
>>>>>>> Author: devurandom
>>>>>>> Date: Mon May  7 22:24:34 2007
>>>>>>> New Revision: 1243
>>>>>>> URL:
>>>>>>> Log:
>>>>>>> - Some more housekeeping.
>>>>>>> - Warzone reacts on loss of focus again!
>>>>>> the wz window will never regain focus if other window gains focus when
>>>>>> wz window is active after this revision...I think that IGNORE_LOSS_FOCUS
>>>>>> wasnt there for no reason...
>>>>> Er... Sorry, what?
>>>>> You mean if something like an IM pops up while you play WZ, you will not
>>>>> be able to switch back? Or WZ will not reawake then? Or is the problem
>>>>> completely different?
>>>>> I was perfectly able to switch apps back and forth with WZ reacting as
>>>>> expected...
>>>> I've seen the problem vz is describing. if the game loses focus (switch
>>>> to another app, etc) during startup (for certain) and some other times
>>>> (not sure which) I cannot regain focus/control of the app. The only
>>>> solution has been to restart the game.  XP, SP2, MSVC, debug.
>>> This must be a Windows only problem. Maybe you can make up the problem in 
>>> Windows specific codepaths in WZ, otherwise it would be a bug in SDL (i.e. 
>>> it 
>>> is missing to send the regain focus event), which I would not assume, since 
>>> it would be a pretty obvious one.
>> Yes it is a windows only problem. But is reproduceable every time.
>> Warzone will not do anything anymore after regaining focus (in fact it
>> won't even render a screen, so you'll hardly notice that you switched
>> back to warzone).
> ...
Fixed in r1247. The culprit was that we didn't check for a third state
in case of an SDL_ACTIVEEVENT. This was the SDL_APPMOUSEFOCUS state,
which is now used to gain focus. But we can't loose focus over it,
because we don't want to loose focus if, in windowed mode, someone where
to hover the mouse over another window.


Attachment: signature.asc
Description: OpenPGP digital signature

Warzone-dev mailing list

Reply via email to