From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: focus-in-hook ---fires incorrectly? Date: Wed, 28 Mar 2018 08:37:31 -0400 Message-ID: References: <23225.11211.455169.412084@retriever.mtv.corp.google.com> <834ll2g2a6.fsf@gnu.org> <87k1tyoaz3.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1522240578 20599 195.159.176.226 (28 Mar 2018 12:36:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2018 12:36:18 +0000 (UTC) Cc: Eli Zaretskii , "T.V Raman" , Emacs developers To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 28 14:36:14 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 1f1AJI-0005Co-DA for ged-emacs-devel@m.gmane.org; Wed, 28 Mar 2018 14:36:12 +0200 Original-Received: from localhost ([::1]:39057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1ALL-0005Yn-H6 for ged-emacs-devel@m.gmane.org; Wed, 28 Mar 2018 08:38:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1AKd-0005YU-Kd for emacs-devel@gnu.org; Wed, 28 Mar 2018 08:37:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1AKc-0005cm-Op for emacs-devel@gnu.org; Wed, 28 Mar 2018 08:37:35 -0400 Original-Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]:34368) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f1AKb-0005bh-ED; Wed, 28 Mar 2018 08:37:33 -0400 Original-Received: by mail-oi0-x22b.google.com with SMTP id u141-v6so1984054oif.1; Wed, 28 Mar 2018 05:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+o3YlTGRmkQv+uAigfn7jr9L2pZeMw2RFgFyIWVYxU4=; b=P1yHGmwfpkoqB3mqWzMSdIftRhNh7RGTmzV6DK5/0XheRo5/O5E4sLry1nUILgnt/P JYplkgbox8eyJtrCoT1gfkFMJAIEeMUfALNurHWE5de6i0j9UIwIEPM6cLWh0ptIWt6c dwuadpWIOZKwNwqAULMSmig1mYK4rXMcIWDj1+imLg7sIm1r9dCLlP061ewuVS/+OTEo CNEZdpvGiNhE9ya18kYN0fPPtFLr0O7zH2L9noDXguc9qM+uoqKkKhhbztIBQnxvNchf EU/hpldZbOL7Ov+qj4uvsuPEJRetyw+0XyYCeDx7nvLZfw4SymyMvAk9t7hMiungZbyT 0trQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+o3YlTGRmkQv+uAigfn7jr9L2pZeMw2RFgFyIWVYxU4=; b=awG4k+yJilm3Jq9U3MW9S7Yq7bxmGD0j8dNb7pMV9MyIE01TD8VDbUNSi8o+xTPj++ ovMUU+tKQ6HPn1p4iI+Fb1Dq12vKQiIbNNvdjrRST7gPRnrkO618hKYm+Dflbn8pzTMx SltKTzogbEyxfUNaYpK89mUU4HrG1Eo6Un4nxLdFSiPmyPfz9Srb3Wjs/A1G5z1CM7I6 OsSRL58aYdgrpyO1B6GO0I+6Tr660g3OfzUouYvftYn8NHz5iRqTdj2D7KrkTXqe4zw9 R8rPq60laHyPFiq34ftsbNK4HxAjnCXhis5M1bGt8IbsyHreLfbC2KUGGeZTfca/gw+i Odhg== X-Gm-Message-State: ALQs6tDFPCKxxcHTlimpJL6ybJqeFmWwxUtsv4E8GRTXJjdVUKOfLk7g g+9Cc8x1jUWalOaN3Pyd1Z5B6K0Iy0T+gUBtgfA= X-Google-Smtp-Source: AIpwx487p3dCi+RJNJ7ftNCU4FvpONh+7YByU2OmjMvG2lCLLD6W+DAOHykNuQvgdhMwQfPW5WTCca+Za1xbOd2FZH4= X-Received: by 10.202.75.13 with SMTP id y13mr2019245oia.22.1522240652525; Wed, 28 Mar 2018 05:37:32 -0700 (PDT) Original-Received: by 10.74.139.213 with HTTP; Wed, 28 Mar 2018 05:37:31 -0700 (PDT) In-Reply-To: <87k1tyoaz3.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22b 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:224121 Archived-At: On 26 March 2018 at 16:09, Michael Heerdegen wrote: > Eli Zaretskii writes: > >> Can you try a different window-manager? It could also depend on the >> focus policy, I think. > > emacs26 on Debian here, with openbox. > > Using the posted recipe with emacs -Q I get a message like > > | hello # > > two times (!) when Emacs loses focus, and three times when I Alt-Tab > switch back to Emacs. I get the expected behaviour using i3 with emacs26 on Debian. One "hello #" message per time I bring Emacs into focus. I do seem to get a spurious message if I unfocus Emacs, switch to another workspace and then back again; Emacs is still unfocused, but it prints a "hello #" message. Possibly the workspace switching is implemented behind the scenes by first raising every window in the workspace?