Package: emacs
Version: 1:26.1+1-3.2+deb10u1

Hi,

Since Debian 10, I've noticed that on occasion Emacs steals focus.

It doesn't happen always, but often enough to be annoying when working
with 2 applications and an emacs sitting in between both.

To reproduce, just quickly move the cursor between the 2 applications
and the extremity. Use konsole or similar application to easily see
whether you have focus by the shape of the cursor. After a couple of
seconds of shaking the mouse between the 2 consoles, you'll notice that
emacs has stolen the focus from them.

I've tried KDE's focus stealing prevention, to no avail. Emacs still
does it.

I've even written an LD_PRELOADable object which maps XGrabPointer and
XGrabKeyboard to a no-op: this doesn't help either (although it does
trigger when clicking on a menu item) => so I suppose emacs uses some
different X intrinsics call to steal the focus, but which one?

Is there a way from within Emacs to switch this annoying behavior off?

Thanks,

Alain

Reply via email to