From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62164: 29.0.60; ediff behaves poorly by default on tiling window managers Date: Tue, 14 Mar 2023 08:59:07 +0800 Message-ID: <87cz5c87xg.fsf@yahoo.com> References: Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23926"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 62164@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 14 02:00:14 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pbt1R-000617-ST for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Mar 2023 02:00:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbt1J-0007da-8j; Mon, 13 Mar 2023 21:00:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbt1H-0007cw-9L for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2023 21:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbt1H-0006Pr-0Q for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2023 21:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pbt1G-0006OO-Hm for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2023 21:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Mar 2023 01:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62164 X-GNU-PR-Package: emacs Original-Received: via spool by 62164-submit@debbugs.gnu.org id=B62164.167875556424493 (code B ref 62164); Tue, 14 Mar 2023 01:00:02 +0000 Original-Received: (at 62164) by debbugs.gnu.org; 14 Mar 2023 00:59:24 +0000 Original-Received: from localhost ([127.0.0.1]:35877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbt0e-0006Mz-4V for submit@debbugs.gnu.org; Mon, 13 Mar 2023 20:59:24 -0400 Original-Received: from sonic310-25.consmr.mail.ne1.yahoo.com ([66.163.186.206]:35548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbt0b-0006Mg-Ah for 62164@debbugs.gnu.org; Mon, 13 Mar 2023 20:59:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678755555; bh=hx8GK3MDcODJOhexQEzOloT1S6bTvIjjQH5wV2g8cdw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=TlCcpOi+OP0L6yCcZps5cpsNK1qeNngM/7P3EUgFuHcfHHLm3DOJcRdKZNovdEXB/mndk1s8LgNluOK93OqOpf/QX0Ks9qZ95mIl9cwvedMd5/Gz96C6qEc+kuIc5Rssj5oTIDJuPlgFGht14DH0aOL7hbTQsCBzuQFGtbBkuyY4Emvwu7nTVrZlSIiEGNQEw2CQfBm2+1LKTjmRNDBDag3W2sV7nzK8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9MmylXNM5NTuOeshG4RawVOaagmVjUIK0a3BFMOyndEcnAnxDjy_N.KiIJD0RBU89Elmbz r4JgsWv_f4jort9w5C3XXrc9RsEtZ1xghjkJTODa2dH7InY4pqXf8uq0mBIQigRC4pSv2IqXb1Jk lh7GwnB3fWE0e3DUsgfOOZ3JXCcUA4O.4XkoJeFxXrrJ8AEJAuPltlG.iDAzk5v4M7p_xhUwG9SV xgYpTUMaNs_Rc.annPfiVHZFwyt2SVTvM04SSbGvRTF63EGxLElm0NxfVSGc9nkxENUdYDWM.Gf3 OwNhPEQQ7v4_jYZTDzTjvhpz1ro0Y0Cd2a7ClsCbpRLNWdplKcP1nwGV_OuoSxkEr3elYQLIt5Hy Ve0EdiwQ0.ExuUhQJeRl2L2RJ5qfgFq.g.d2RlmViU X-Sonic-MF: X-Sonic-ID: 45e5674b-893b-4cc1-8332-f61ea6035ee2 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Tue, 14 Mar 2023 00:59:15 +0000 Original-Received: by hermes--production-sg3-67c57bccff-ddhjj (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 41e331286467b6da34d0f788f35f3245; Tue, 14 Mar 2023 00:59:12 +0000 (UTC) In-Reply-To: (Spencer Baugh's message of "Mon, 13 Mar 2023 12:44:23 -0400") X-Mailer: WebService/1.1.21284 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257924 Archived-At: Spencer Baugh writes: > ediff defaults to a multiframe UI on graphical displays. If the user is > running a tiling window manager on X, the control panel frame gets tiled > and the whole thing becomes either very ugly or unusable. > > This is a very long-standing bug, but it should be fixed. Most tiling > window manager users work around this with: > > (setq ediff-window-setup-function 'ediff-setup-windows-plain) > > But I would rather the multiframe UI just work correctly by default. Maybe such users could be taught to make the utility window override-redirect instead. > On X, perhaps we should set _NET_WM_WINDOW_TYPE to > _NET_WM_WINDOW_TYPE_UTILITY for the ediff control panel frame, so that > tiling window managers float the control panel frame frame by default. > This would probably need to be a new frame parameter specific to X. I > can try to make that change if that seems reasonable. (This would also > be useful for allowing other packages to have multiframe UI modes.) The ediff control frame is not a utility frame because you are supposed to type in it. One window manager which extensively uses keyboard navigation (I'm not sure I remember which) applies the No Input focus model to _NET_WM_WINDOW_TYPE_UTILITY, not letting you type in such toplevel windows. > I'm not sure what we'd do for other windowing systems. Probably the > only other platform where tiling window managers are at all common is > Wayland; perhaps there's some way to set this hint through PGTK? No, Wayland doesn't provide any of this, unless you use a protocol that is exclusive to GNOME Shell. Popups are instead supposed to be implemented as xdg_popup windows and not xdg_toplevels, or toplevels transient for another toplevel. The former is technically infeasible under GTK, and the latter results in the control frame obscuring everything else.