From: Richard Frith-Macdonald <richard@brainstorm.co.uk>
Date: Mon Nov 05, 2001 07:27:49 PM Europe/London
To: b.gohla@gmx.de
Subject: Re: focus app with one mouse click?
On Monday, November 5, 2001, at 07:42 PM, Björn Gohla wrote:
someone more knowledgeable may provide some more insight here, but as
far as
i can see, the window manager sends a WM_TAKE_FOCUS message to the
client,
when it thinks that client should receive the focus, which then in
turn has
to request that its menus and panels be mapped. i know this because the
window manager i use (larswm) focuses the miniwindow on single click,
but the
menu only appears after another double click, (which only works
partially).
The handling of the sequence of X events you need is much more complex
than
that ... but luckily for you, you don't have to work at that level -
btw, i know quite well that i am free to implement this, my question
was
rather what source files to look at.
gui/Source/NSApplication.m
in the implementation of NSAppIconView -mouseDown:
you would have to do [NSApp unhide: self]