emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: focus-in-hook ---fires incorrectly?


From: Eli Zaretskii
Subject: Re: focus-in-hook ---fires incorrectly?
Date: Mon, 26 Mar 2018 20:44:17 +0300

> From: address@hidden (T.V Raman)
> Date: Mon, 26 Mar 2018 10:20:11 -0700
> 
> this is on emacs built from Git @head running on Debian under StumpWM
> as a window-manager.

Can you try a different window-manager?  It could also depend on the
focus policy, I think.

> (add-hook 'focus-in-hook #'(lambda () (message "hello %s" (selected-frame))))
> 
> What you'd expect:
> 
> 1. See "hello <frame-id>" when Emacs frames receive focus.
> 2. Nothing when Emacs loses focus.
> 
> What Actually Happens:
> 
> Hook fires when emacs loses focus, and you see "Hello <frame-id>"
> where frame-id is the id of selected frame in emacs
> 2. You get "hello" when Emacs receives focus  -- with no frame-id.

It works as expected here, but I'm not on X.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]