From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: Can Emacs help here (running on Linux, display on Windows)? Date: Sat, 5 Aug 2017 13:14:29 -0600 Message-ID: <20170805130657728047822@bob.proulx.com> References: <83o9ruwmc2.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1501960503 1497 195.159.176.226 (5 Aug 2017 19:15:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 5 Aug 2017 19:15:03 +0000 (UTC) User-Agent: NeoMutt/20170609 (1.8.3) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 05 21:14:58 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1de4XK-00007C-0v for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Aug 2017 21:14:58 +0200 Original-Received: from localhost ([::1]:58456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1de4XQ-0003XQ-Bl for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Aug 2017 15:15:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1de4Wv-0003XA-N3 for help-gnu-emacs@gnu.org; Sat, 05 Aug 2017 15:14:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1de4Ws-00009F-FQ for help-gnu-emacs@gnu.org; Sat, 05 Aug 2017 15:14:33 -0400 Original-Received: from havoc.proulx.com ([96.88.95.61]:43984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1de4Ws-000097-9K for help-gnu-emacs@gnu.org; Sat, 05 Aug 2017 15:14:30 -0400 Original-Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id AD29518B for ; Sat, 5 Aug 2017 13:14:29 -0600 (MDT) Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 7D528217E4 for ; Sat, 5 Aug 2017 13:14:29 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 73D4A2DC5B; Sat, 5 Aug 2017 13:14:29 -0600 (MDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <83o9ruwmc2.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 96.88.95.61 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113934 Archived-At: 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