[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ELISP] Detect focus on emacs.
From: |
Tim X |
Subject: |
Re: [ELISP] Detect focus on emacs. |
Date: |
Tue, 03 May 2005 18:56:00 +1000 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Michael Cadilhac <Michael.Cadilhac@lrde.epita.fr> writes:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>> I need to know if emacs has the global input focus, that's to say,
>>> if emacs' window is the selected one in the wm.
>>
>> I don't think you can do that from elisp as of Emacs-22.
>> Patches are welcome to add the functionality, of course,
>
> Ok, why not !
>
> A function like `window-focus-p', that will check with
> XGetInputFocus(3x)/GetForegroundWindow(w32) if the current window
> has the input focus ?
>
> So I'll have a try. BTW, is there guidelines for emacs patches,
> some must-know coding style or whatever like that somewhere ?
>
I think the problem you are having is because focus information is
handled at the X and window manager level - I don't think emacs knows
anything about the focus. Note that this is just a guess.
Tim
--
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you
really need to send mail, you should be able to work it out!
- Re: [ELISP] Detect focus on emacs., (continued)
- Re: [ELISP] Detect focus on emacs., Peter Dyballa, 2005/05/03
- RE: [ELISP] Detect focus on emacs., Drew Adams, 2005/05/04
- Re: [ELISP] Detect focus on emacs., Peter Dyballa, 2005/05/04
- RE: [ELISP] Detect focus on emacs., Drew Adams, 2005/05/04
- Re: [ELISP] Detect focus on emacs., Peter Dyballa, 2005/05/04
- Message not available
- Re: [ELISP] Detect focus on emacs., Michael Cadilhac, 2005/05/04
- Message not available
- Re: [ELISP] Detect focus on emacs., Michael Cadilhac, 2005/05/04
- Re: [ELISP] Detect focus on emacs., Michael Cadilhac, 2005/05/04
- Re: [ELISP] Detect focus on emacs., Joe Corneli, 2005/05/04
- Message not available
- Re: [ELISP] Detect focus on emacs., David Kastrup, 2005/05/05
Message not available
Message not available