From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh Newsgroups: gmane.emacs.bugs Subject: bug#62164: 29.0.60; ediff behaves poorly by default on tiling window managers Date: Thu, 16 Mar 2023 11:07:21 -0400 Message-ID: References: <87cz5c87xg.fsf@yahoo.com> <878rg087v5.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36280"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62164@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 16 16:09:19 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 1pcpEE-00099g-8l for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Mar 2023 16:09:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcpE0-0008Ld-72; Thu, 16 Mar 2023 11:09: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 1pcpDy-0008LA-JI for bug-gnu-emacs@gnu.org; Thu, 16 Mar 2023 11:09:02 -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 1pcpDy-0000QM-85 for bug-gnu-emacs@gnu.org; Thu, 16 Mar 2023 11:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pcpDy-0002hd-2S for bug-gnu-emacs@gnu.org; Thu, 16 Mar 2023 11:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Spencer Baugh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Mar 2023 15:09: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.167897932110362 (code B ref 62164); Thu, 16 Mar 2023 15:09:02 +0000 Original-Received: (at 62164) by debbugs.gnu.org; 16 Mar 2023 15:08:41 +0000 Original-Received: from localhost ([127.0.0.1]:42764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcpDc-0002h2-Eu for submit@debbugs.gnu.org; Thu, 16 Mar 2023 11:08:40 -0400 Original-Received: from mxout5.mail.janestreet.com ([64.215.233.18]:45353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcpDb-0002gl-3J for 62164@debbugs.gnu.org; Thu, 16 Mar 2023 11:08:39 -0400 Original-Received: from mail-yb1-f197.google.com ([209.85.219.197]) by mxgoog3.mail.janestreet.com with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) (Exim 4.96) id 1pcpDU-001vOy-1X for 62164@debbugs.gnu.org; Thu, 16 Mar 2023 11:08:33 -0400 Original-Received: by mail-yb1-f197.google.com with SMTP id i11-20020a256d0b000000b0086349255277so2148055ybc.8 for <62164@debbugs.gnu.org>; Thu, 16 Mar 2023 08:08:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; t=1678979252; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=fVe3lk/4rvmIgJE3472/dHyobqd8IzjP78iH4t5xyGI=; b=WU+ajpPfyb4xIswSe33vgnADbGw4u46QeQp8DRg2tC4oza67arFyqVS04+QW/n+CIa +im7ZR5CurEnBy7LaffCrdLNylDXxaUj+87KzezBLDuVC99bwV3mFpNuhD3OkDF3t7k6 86oAkIPP7McWaqP1J0F4p7Kgc9V5YMqFG8MMc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678979252; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fVe3lk/4rvmIgJE3472/dHyobqd8IzjP78iH4t5xyGI=; b=PYmMObg34pqlW5jH5hkaX7y5zfZtgrMduZU/0ZDq7mmlozBVHYyp/UixJwBBjeQ1jy r5aDet0corSDLehOkFbS65KojsW+BMCZq29lcRRRQljJqlrSD4aod6gLnxEeMxprmoEt tTTfTtAy2E46dGBn1tO5jpxXW1H0a5DOmMdsGH0LjsI4vfOaETAt8E/6nm1IRphGZ/pc 9F1dHDEvIWTqfut0nOw6PM9uTU5N5ZdjfO0A8lHpRX8gXG0SouOcugI4QxUNgjMyXbdP D/ZI6RjTyWt1mM6a+KwR5kBufW1KL6v2qLqW3rWQ8Bn/QsUwEiMhznZHrCA6MarVP3LT FuAg== X-Gm-Message-State: AO0yUKVI9qYoNfsVW01Dwv1f/gtry8sPf2QiojK6z+V0ni/okqOR4Zw5 ESghFgMZMpggOan61S1AsEpjow2+ks+Up8sqGupLqh3rfcGCB9RGpA965SfcFF11mq31o01/mD+ +nJI9pAjyt/iDHRP/jzSgtNmmqe0IDA== X-Received: by 2002:a05:6902:1142:b0:b47:5f4a:d5fc with SMTP id p2-20020a056902114200b00b475f4ad5fcmr5663069ybu.9.1678979252592; Thu, 16 Mar 2023 08:07:32 -0700 (PDT) X-Google-Smtp-Source: AK7set8MDXPVxGMyoRxDJNF9GRG9gqEpasXPVTRqPNI5Mnk72Mx9Iq1c5ljhM4ZoydDHCEKOdZg6tKlLK7msZ+yj+KY= X-Received: by 2002:a05:6902:1142:b0:b47:5f4a:d5fc with SMTP id p2-20020a056902114200b00b475f4ad5fcmr5663059ybu.9.1678979252376; Thu, 16 Mar 2023 08:07:32 -0700 (PDT) In-Reply-To: <878rg087v5.fsf@yahoo.com> 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:258023 Archived-At: On Mon, Mar 13, 2023 at 8:59=E2=80=AFPM Po Lu wrote: > Spencer Baugh writes: > > ediff defaults to a multiframe UI on graphical displays. If the user i= s > > running a tiling window manager on X, the control panel frame gets tile= d > > 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. When in multi-window mode, Gimp displays its toolbar as a utility window, and you are supposed to type in that. If Gimp does it, surely we can do 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. Does it do this even if the Input hint is set in WMHints? If so, isn't that window manager just plain broken? Gimp's toolbar would also be broken on that WM. If Gimp isn't hacking around this broken window manager, I don't think we should either. (That argument suffices on its own, but as an extra point, keep in mind that if this broken WM is a tiling window manager, the ediff experience is *already* broken-by-default on that WM) > BTW, `x-change-window-property' lets you mess around with window > properties if you want. No frame parameter needed. AFAICT, my tiling window manager (XMonad) makes its tiling vs floating decision when the window is first created, so changing the window property after the fact doesn't help. I assume most tiling window managers behave the same. So, we need a new frame parameter so that we can set the window type at the time of creating the frame. Unless there's some existing way to set a window property for a new frame at creation time?