From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Can Emacs help here (running on Linux, display on Windows)?
Date: Sat, 05 Aug 2017 15:51:23 -0400 [thread overview]
Message-ID: <jwvh8xlajcl.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: CANc-5Uz_=P-UL+e6dAdVw2rZPQ+56YsaPTx3-PxZ-hQzXycY=A@mail.gmail.com
> generally run with a bunch of PuTTY windows connected to Linux servers.
[ I assume you mean GNU/Linux servers, since Linux itself doesn't provide
much in terms of usable server and the other common OS built on top of
Linux (aka Android) is pretty flimsy when it comes to
server functionality. ]
> I'm now faced with a small problem. Click-to-focus is the rule, but stupid,
> stupid Windows also insists on passing the same click used to change focus
> to the application itself. Maybe VcXsrv has some setting I've not
> discovered (I can't even find the damn thing on the computer.) Is there
> some way to make it stop? Can Emacs come to the rescue and somehow ignore
> that initial, point-changing click?
In theory you could try playing with `focus-in-hook' and
`focus-out-hook' to keep track of whether we have focus and ignore
events received while we don't have focus (and/or the first event
received after getting focus if it's a click).
But this assumes your Emacs is running a GUI session, whereas you
mention PuTTY above, in which case Emacs has receives no information
whatsoever about GUI events such as focus change: you'd have to tweak
PuTTY to do that instead.
Stefan
next prev parent reply other threads:[~2017-08-05 19:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-04 20:26 Can Emacs help here (running on Linux, display on Windows)? Skip Montanaro
2017-08-05 6:38 ` Eli Zaretskii
2017-08-05 9:29 ` ken
2017-08-05 19:14 ` Bob Proulx
2017-08-05 19:39 ` Skip Montanaro
2017-08-05 20:48 ` Bob Proulx
2017-08-05 21:06 ` Óscar Fuentes
2017-08-05 19:51 ` Stefan Monnier [this message]
2017-08-05 21:07 ` Skip Montanaro
2017-08-05 20:04 ` Yuri Khan
2017-08-05 20:59 ` Skip Montanaro
2017-08-06 7:26 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvh8xlajcl.fsf-monnier+gmane.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).