From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: We should decouple focus and frame switching Date: Mon, 11 Jun 2018 05:35:12 +0300 Message-ID: <83tvqaqcdb.fsf@gnu.org> References: <6d1bc582-29be-5df7-56b1-e82305ee477f@dancol.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1528684424 16748 195.159.176.226 (11 Jun 2018 02:33:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2018 02:33:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 11 04:33:40 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fSCeJ-0004Gc-Av for ged-emacs-devel@m.gmane.org; Mon, 11 Jun 2018 04:33:39 +0200 Original-Received: from localhost ([::1]:46133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSCgQ-0007cS-Fo for ged-emacs-devel@m.gmane.org; Sun, 10 Jun 2018 22:35:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSCfl-0007Zo-CL for emacs-devel@gnu.org; Sun, 10 Jun 2018 22:35:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSCfi-00076Z-9V for emacs-devel@gnu.org; Sun, 10 Jun 2018 22:35:09 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSCfi-00076J-5E; Sun, 10 Jun 2018 22:35:06 -0400 Original-Received: from [176.228.60.248] (port=1351 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fSCfh-00038U-HQ; Sun, 10 Jun 2018 22:35:05 -0400 In-reply-to: <6d1bc582-29be-5df7-56b1-e82305ee477f@dancol.org> (message from Daniel Colascione on Sun, 10 Jun 2018 11:07:09 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226180 Archived-At: > From: Daniel Colascione > Date: Sun, 10 Jun 2018 11:07:09 -0700 > > How about this? We'll add a frame-focused-p function that returns nil, > t, or 'unknown, and wire up focus-in-hook and focus-out-hook to run only > when we actually observe a window system focus change, letting the frame > switch stuff run completely independently. This way, we'll be able to > write lisp (as I've been trying to do) that reflects the real window > system focus. Does that mean that clicking on a frame will no longer restart cursor blinking when blink-cursor-mode is in its default configuration? It does now.