From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master 4b98a79a50: Improve X event timestamp tracking Date: Sun, 07 Aug 2022 14:15:04 +0800 Message-ID: <8735e8wpef.fsf@yahoo.com> References: <165984385935.14715.8191942019361575877@vcs2.savannah.gnu.org> <20220807034419.B5F2FC09BFD@vcs2.savannah.gnu.org> <87y1w0zpe9.fsf@yahoo.com> <87r11szp6h.fsf@yahoo.com> <19d020d85bed5d030e706800f8cbb0b7fbb3bc65.camel@dancol.org> <875yj4znp5.fsf@yahoo.com> <75aa6286819b4ca9b008a3697b293567321c0d86.camel@dancol.org> <83pmhcy5it.fsf@gnu.org> <8735e8y4z6.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20595"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 07 08:17:23 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oKZbG-0005CU-W2 for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Aug 2022 08:17:23 +0200 Original-Received: from localhost ([::1]:33388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKZbF-0001mT-A8 for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Aug 2022 02:17:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKZZI-00010R-Tp for emacs-devel@gnu.org; Sun, 07 Aug 2022 02:15:20 -0400 Original-Received: from sonic305-20.consmr.mail.ne1.yahoo.com ([66.163.185.146]:37980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKZZG-00052a-78 for emacs-devel@gnu.org; Sun, 07 Aug 2022 02:15:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1659852915; bh=b9z0nQ3QtWXi1w0cRmWwGGcbfE1al23LVOoJQHLbukw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=X3YhfhzkV25P7A87Lkj8b5mxl5frjqJBy42mQv62sgTYXhuvoSoO8I4EzczVxIuvgv/0CkxFAEKo9MwSG2IE5ueX7w1FqQy8lglHFfhl2vOmI5DrGppkFTQaZb3sS3VehGJtFlBqtg0zDXZq9cVBZo7127mcsNa+Bs3iv/wWIxIUC2anPwk7gPSlnqj+Ic23D8K3phIVRApwN1zThmiVEZjUFFTle0wuKhG+cSumD9F0mepGmAkc24xaFPTCq2d7oVo/aocBF0wex6FXeGJbrP7iWFaYCNS/R9u/F0kcSj+/cuijxwB9qwrf5wvzDW2+g6k6/A4SbM0ZWCL9UYJ00g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1659852915; bh=AoIgHm/2eROLN/HaAIYlBvXyrDGaih5tAED76maNSy1=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=VqUY1sGc/WP0k6MtoKVQxKy971m/2NNQ67GechYSPUWnJr6jWLel+WCMyWb8zd3C4V1KR/ydwXuOWNQUMjW503MG5Ynxd2Yr7ipHsq4LsHwAJ33zcMk9jvh3nFNwOpGQZnZ23HrYsFjY8qWX3BDuSDeCGpuJYJcBGH2W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Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Sun, 7 Aug 2022 06:15:15 +0000 Original-Received: by hermes--canary-production-sg3-6f58cd9b5-slt79 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 953b0825097da3359880bc5b69a6eefe; Sun, 07 Aug 2022 06:15:09 +0000 (UTC) In-Reply-To: (Daniel Colascione's message of "Sun, 07 Aug 2022 02:04:27 -0400") X-Mailer: WebService/1.1.20491 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.185.146; envelope-from=luangruo@yahoo.com; helo=sonic305-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293178 Archived-At: Daniel Colascione writes: > And I'd rather not explicitly bypass window manager policy. Let's not > get into an arms race. We already do that all the time. Just a few examples: x-mouse-click-focus-ignore-position, x-wait-for-event-timeout, x-frame-normalize-before-maximize, x-set-frame-visibility-more-laxly, x-input-grab-touch-events. Martin can probably name more. > By the way: if we're keen on making things work as documented, > shouldn't we add a bunch of workarounds for x-raise-frame, which > basically does nothing right now? raise-frame is supposed to raise the frame without changing the input focus, but if it doesn't work it should be fixed. > Don't we still have the problem of XSetInputFocus succeeding while > the EWMH activation fails, leaving the whole window stack in a state > confusing for both the human and WM components of the system? XSetInputFocus is no longer called when EWMH activation is being used. Calling it previously was a bug, it shouldn't be used with EWMH activation. > Even if the window disappears while we're waiting? How can the frame be deleted while we're waiting? I've never ever seen such an unruly X program. > It's hard to imagine any user sitting down and tweaking this > variable. This seems like one of those preferences added not to > account for differences in taste, but to punt a hard technical choice > to users not prepared to make it. I also wrote something in etc/PROBLEMS. Users are expected to read that when they experience problems, and to try the different options in order until it starts working. > Again, I disagree philosophically with the thrust of this patch. > Focus stealing prevention isn't some nuisance to work around. If > Emacs properly manages user-interaction timestamps, there's no need > to work around it. We don't need to pretend we're a panel or > something if we just give the window manager the information it needs > to make the right decision. If you (or a user) don't like it, the variable can be set to nil. But it would be best for our functions to behave according to their documentation first. Please tell me if it works or not.