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 09:00:30 +0800 Message-ID: <878rg087v5.fsf@yahoo.com> References: <87cz5c87xg.fsf@yahoo.com> 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="28672"; 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:01:10 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 1pbt2L-0007FA-5k for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Mar 2023 02:01:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbt2G-0008M3-4A; Mon, 13 Mar 2023 21:01:04 -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 1pbt2F-0008Lv-2i for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2023 21:01: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 1pbt2E-0006kc-8b for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2023 21:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pbt2E-0006Rg-4H for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2023 21:01: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:01: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.167875564924746 (code B ref 62164); Tue, 14 Mar 2023 01:01:02 +0000 Original-Received: (at 62164) by debbugs.gnu.org; 14 Mar 2023 01:00:49 +0000 Original-Received: from localhost ([127.0.0.1]:35882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbt20-0006R4-Km for submit@debbugs.gnu.org; Mon, 13 Mar 2023 21:00:48 -0400 Original-Received: from sonic310-25.consmr.mail.ne1.yahoo.com ([66.163.186.206]:40506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbt1y-0006Qo-6Z for 62164@debbugs.gnu.org; Mon, 13 Mar 2023 21:00:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678755640; bh=VdIgAjXmOaQrmr4nnwJxpI8xSchchhDQTLW1PlKe3Jg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=CYNOVsk+rH7VBduV7FuLpa66118gY1GsqAzgKeOqsyZD66UJLZ/iK60tK9j1b9NqurDuVu4YlSPpQCBEaasSSOg4StvmC1luRFshbC+OJlEqRVBcTyuH6tT7JhzEEBsgGevfXZqmHVxIjmF0YrZ7bLfg8B1YYAUF+jBFGGTpPuCcdLGk2rtpK0a4qkw8BNu4WgYvqnWPgPufOXQG5ioI5L/eoh5wWGoeD6mIKuh2sk0/J5I+scODlVCUhjuaLGXHzD4QPXkMXS+yG7WA04A8NWhM25sNi0bdWxJyGDK7zMYjxyb6pKkIqyKnzljmIS5A95SgnjZ06HlCqMgpgUPEEg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678755640; bh=lETnsMZESzWNe4pC3hSgueKo/JxZb79QiUEZ7O7zUvt=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=NUlKgyfe2BdumeP7f/q4JfgvhWvDYUVRIJHHxFxTO40ift+QKJfkn42/iBZKG/Yb9m6RMYxl4X6FtWRgdxBrO6Yie2bHgv0UWxcXz0i+4q2WHlnbqw7a7Z5t4a4okcC9++tcgjrreHXLL0dr3E2DJDOOiUBygP3J9yeLJ5yJEp2fTjckqkPSgSLoNBnfqDUzEQi/23hy6VK4WiSTNz2OnqCoLzRQ7PV+brAKfpYswW7hWPRVI3gDC0c5tlZg69vSvEM6Fsn5UAqoOSWGK/GZS77Pco4uk54XyVdeKV8Jd4eTC/SF42Fzk52jP2moF4IPeYcE7e93XKq375TNzEL1AQ== X-YMail-OSG: jFhdRZsVM1n_u6HAuyv5AIlKGVGRxU1ZiuhHZ6ghGaa.aivycT_b1loYjLcOAmP YO7zz8nwSJgt_xhXlop31tIB0Wkf60spnSrZwdDW8caTMjBVz2hZDQBc_6nzZsQ7ybDymlol87Bu TTAEb9OhrzQpSIIen7KFOkZqJwfuCFdWTRGWUZakQZdUytg7d2cd.hy7tuWsPoZ0HCRZ2S3pIxpJ hoxp696Pa1jB7QZBISTnlCxaThl_Ao79NqRWtBNaUb5nf6DCIb._6HXBd3l1lTi36LOQuoqchtLf 2ncl1Kr5B._NwbKth5f7FsS04XqII8nag7zsSPsxl9lLLHA.iB3cXJdaQ5Q09lplJW_.oTLukgtP xY2IL0q54RimPrlhKbcMin6Mh.uFczif_RBP7RGATKMb1jTtRXA4_y_XNokgHmWKsLjnCIbuTcL5 i9p6W929HfGiMe4fEH9YyWI1rlIluVsp.SYbUbEsU1H0L1wJBEgJ8ENhjug.e7o64C6UPqJ_efCI Oq5HDYyVR3tBftDDv04pzQlCuaLt4xyi2B151kn6lswJ0cUCyzJxP0peWP3evpJkV1f7FOdMo.9h 1mSyTtgYbN8Cl64qHdywharGC9OztxBkH9Z4Kji.rySRMOnmndwO7gAvWpNpAGqfcVhdzo8jilgu wYVsuKS9Yp_qXCpgW4JTCCnBDyb6pwF4SSagccTtFoxYzHmKF4jlRRrYfD_4XnP8NAWZAyn40hHj ngKz3KhItcHGEIcjsJJlX6lwt_z3dbN3UFlePfVPfME5ZL7_T89TKtNRznW5Hky7R6s_XCIXWhpT pFLBqDgJyKHH_9o47zhcWmc5cZgIU_upyjsuAsY69s X-Sonic-MF: X-Sonic-ID: eb7e3894-6290-4ebd-9fc1-a4e1d31dff1a Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Tue, 14 Mar 2023 01:00:40 +0000 Original-Received: by hermes--production-sg3-67c57bccff-sjmln (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 95d0b64d3a2e0fc2b9790beb2f3eb5ad; Tue, 14 Mar 2023 01:00:35 +0000 (UTC) In-Reply-To: <87cz5c87xg.fsf@yahoo.com> (Po Lu's message of "Tue, 14 Mar 2023 08:59:07 +0800") 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:257925 Archived-At: Po Lu writes: > 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. BTW, `x-change-window-property' lets you mess around with window properties if you want. No frame parameter needed.