[Xquartz-dev] Apple-WM usage
Greg Parker
gparker at apple.com
Fri Apr 11 16:17:21 PDT 2008
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
More information about the Xquartz-dev
mailing list