[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: focus-in-hook ---fires incorrectly?
From: |
T.V Raman |
Subject: |
Re: focus-in-hook ---fires incorrectly? |
Date: |
Mon, 26 Mar 2018 11:00:16 -0700 |
Am bound to stumpwm because it talks to me -- I hope someone else on
the list can try different WMs.
Eli Zaretskii writes:
> > 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.
--
--