I'm trying to figure out how this works, because I got my problem fixed, but 
I'm trying to understand the code here…

an excerpt from X11Application.m
.
.
.
case NSAppKitDefined:
    switch ([e subtype]) {
        static BOOL x_was_active = NO;
        case NSApplicationActivatedEventType:
            for_x = NO;
            if ([e window] == nil && x_was_active) {
                BOOL order_all_windows = YES, workspaces, ok;
                for_appkit = NO;
.
.
.

is that "if" statement ever getting used?  If I take out the "&& x_was_active" 
part my problem goes away and the focus works fine without quartz-wm… but I'm 
trying to figure out why x_was_active is set to NO, then automatically checked 
if its YES …?  I'm probably missing something I'm sure.


On Sep 28, 2011, at 12:00 AM, Jeremy Huddleston wrote:

> 
> On Sep 27, 2011, at 7:49 PM, doh123 wrote:
> 
>> Thanks for the help.  I have narrowed down the the problem does not exist in 
>> 1.10.0, but it does happen in 1.10.4.  I need to try some more builds to 
>> narrow it down later to when I get time.  If I can narrow down which update 
>> it happened in, I should be able to find the code change that caused it….and 
>> worst case I can try some bisects.
>> 
>> to quartz-wm… I have yet to find a single game that runs in Wine that can 
>> switch between windowed and fullscreen without having to disable the window 
>> manager control and decorations (in Wine itself, quartz-wm is still running, 
>> but not doing much but pasteboard).  If you've found one that works, it 
>> might be the rarity.  Its not just Wineskin, I've tested with stock Wine 
>> builds, even with 2.7.0beta2
> 
> I just used wine-1.3.28 from MacPorts and 2.7.0_beta2 with Quake 2 to toggle 
> fullscreen on and off a few times.  Nothing crashed.
> 
>> They used to crash, but with more recent builds they do not crash, yet still 
>> do not work.  Many games will like auto minimize and not come back, or the 
>> window will draw in the wrong areas, or the graphics will become corrupted, 
>> or often the screen just goes solid white and can usually still hear the 
>> sound there is just no picture.
> 
> What games?  They may be wine issues.
> 
> 
> _______________________________________________
> Xquartz-dev mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
> 

_______________________________________________
Xquartz-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev

Reply via email to