unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bob Proulx <bob@proulx.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Can Emacs help here (running on Linux, display on Windows)?
Date: Sat, 5 Aug 2017 13:14:29 -0600	[thread overview]
Message-ID: <20170805130657728047822@bob.proulx.com> (raw)
In-Reply-To: <83o9ruwmc2.fsf@gnu.org>

Eli Zaretskii wrote:
> Skip Montanaro wrote:
> > 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?
> 
> What do you mean by "ignore"?  What does Emacs do upon that click that
> you'd like to avoid?  (I never used a Mac, and hope I never will, so I
> have no idea what does "change keyboard focus, full stop" really
> mean, on a GUI system where the window that has focus receives a flood
> of window-system events right away.)

When gui emacs receives the mouse click it moves the point to that
location from wherever it was before.  The point is moved.  You might
not want to move the point because it was where it needed to be for
the next edit.  But clicking on the window to raise it will also move
the point.

This is one of the reasons that I often use emacs inside of an XTerm
solely because then clicking on the window does not generate a mouse
event inside the terminal.  And also why mouseless window managers are
useful.  Moving focus and raising windows without generating a click
event and moving the point.

Skip, I think your only option is to click on the title, frame, or
border.  That should raise the window without sending an event to
emacs.  Or alternatively switching to using a emacs inside of a
terminal window.  Then clicking on the terminal will raise the
terminal without sending a mouse event to emacs.

Bob



  parent reply	other threads:[~2017-08-05 19:14 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 [this message]
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
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=20170805130657728047822@bob.proulx.com \
    --to=bob@proulx.com \
    --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).