[Xquartz-dev] Apple-WM usage

Jeremy Huddleston jeremyhu at berkeley.edu
Fri Apr 11 18:01:20 PDT 2008


Yep, thanks.  That's the magic I was looking for. =)

--Jeremy

On Apr 11, 2008, at 16:17, Greg Parker wrote:
> On Apr 11, 2008, at 2:49 PM, Jeremy Huddleston wrote:
>>> For me I remember that with 2.2.0_rc1 expose would bring all X11  
>>> windows forward, with rc2 expose brought none forward. Maybe some  
>>> patch was lost from rc1 to rc2?
>>
>> not quite... This is actually partially intentional.  F9 expose  
>> should just bring the selected window forward.  In the old style,  
>> SetFrontProcess caused all the windows to come forward.  This is  
>> "wrong"... I just need to figure out where to hook in to cause cmd- 
>> tab and clicking on the dock to move all the windows forward.
>
> Clicking on the Dock sends a 'reopen' Apple Event. AppKit's default  
> response is to call [[[NSApplication sharedApplication] delegate]  
> applicationShouldHandleReopen:hasVisibleWindows:], and then  
> continues to the open-untitled-document machinery if it returns YES.  
> So try this: implement - 
> applicationShouldHandleReopen:hasVisibleWindows: in X11Controller,  
> summon the windows forward, and return NO. (I don't think reopen  
> interacts with -application:openFile:, but be careful.)
>
> cmd-tab doesn't go through here. I'm not sure what path it takes.
>
>
> -- 
> Greg Parker     gparker at apple.com     Runtime Wrangler
>
>
> _______________________________________________
> Xquartz-dev mailing list
> Xquartz-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/xquartz-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3040 bytes
Desc: not available
Url : http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20080411/6b3f9574/smime-0001.bin


More information about the Xquartz-dev mailing list