From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Cleaning out old X11 toolkits? Date: Mon, 15 Feb 2021 10:48:13 +0100 Message-ID: <878s7pwtk2.fsf@gmail.com> References: <07D5E64D-DAD0-45B3-B272-627A73D7CBAE@gmail.com> <87pn1erewq.fsf@gmail.com> <87wnvlecrw.fsf@gnus.org> <83sg69o3av.fsf@gnu.org> <87mtwhctte.fsf@gnus.org> <459A0475-E3E7-4159-82DF-93809CCF1E24@gmail.com> <87eehng52n.fsf@gnus.org> <87mtwbye5b.fsf@gmail.com> <87czx7ycva.fsf@tcd.ie> <87eehmyalr.fsf@gmail.com> <877dneoewi.fsf@tcd.ie> <875z2yy6z7.fsf@gmail.com> <878s7twq2t.fsf@gmail.com> <84adc238-c424-bb6b-da28-c4232172da5b@gmx.at> <83zh09dtmo.fsf@gnu.org> <87blcmvmnk.fsf@gmail.com> <83mtw6bq86.fsf@gnu.org> 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="17566"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, alan@idiocy.org, emacs-devel@gnu.org, contovob@tcd.ie, rudalics@gmx.at, monnier@iro.umontreal.ca, yandros@gmail.com, larsi@gnus.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 15 10:52:22 2021 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 1lBaYI-0004Sa-1k for ged-emacs-devel@m.gmane-mx.org; Mon, 15 Feb 2021 10:52:22 +0100 Original-Received: from localhost ([::1]:45222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBaYG-0001aV-Vd for ged-emacs-devel@m.gmane-mx.org; Mon, 15 Feb 2021 04:52:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBaUR-00069p-Ff for emacs-devel@gnu.org; Mon, 15 Feb 2021 04:48:23 -0500 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:40871) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBaUP-0006cV-KR; Mon, 15 Feb 2021 04:48:23 -0500 Original-Received: by mail-wm1-x331.google.com with SMTP id o24so8670861wmh.5; Mon, 15 Feb 2021 01:48:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:message-id :mime-version:content-transfer-encoding; bh=OiihpUnOLMFnaE30XN27NSWt60IrsSrqFHclqCFAVOk=; b=bpCw3/kDVxb0KrLgUMERh8bV8pZWczii+oWjF/2qzFyBgPy9dJ75vXJNoHgT7hSrsZ XYoEMD38RhtalIeaIT8km2aP341jPB5MkTpVhd8xLJUzqau+dWEgoL18WlCx03nKG5qO vyCgcG03pSgphNc80ZTB44hM5io4wh41rfrTwnw/zHvnp/b6MELYT+z+61FOQtlyuDuy 5ycTJV0GqjqG20LY3jGCa0R2kDi+hBwtsrwKG3u6naUueHgiuD5UMAfHHG4AYGXoNlR/ 8gmMtapWcvwiYppStJh06R0LH4GVpQdrtUogF99j+B6hGsd0RLYVEvw+vV6I/O4QzR8H mshQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:message-id:mime-version :content-transfer-encoding; bh=OiihpUnOLMFnaE30XN27NSWt60IrsSrqFHclqCFAVOk=; b=J62JFBtVKA0RcGpnrqGrTGeqvExk1RbWDSLj5y/TzQ6yoHys/bU6GrLMokTnFq210C W0cbchupu53jy/P10j6kvDCTWdooaYDuQOS/BxiMMjsvlHO30Z/yJq+bgmy75sBaE3n7 aoW8sM1BO21JxCcXqM3cVxfOuxNyXBAJA1uPj+0VZfuOchAuQ/qr0zyogW74QRnQL0Gm 0lPHza9vOKSgtXCJRhV7Pu0vRDCUacTaEv5qKEvwUxKJ91iTC6qDMekXomQ5o5zBwuBV PSrKVvy6/8FR7plAk39+x3zn1IEGndePIT5DVGoW7oi5gp1lgeNPThgMN7lgf24Q6KqJ zt7w== X-Gm-Message-State: AOAM533l9Ib01bUphyQgeT+oOKUO4Awv3nAd7l6ahc+kKOnepXqUChOw hkTBLUKK5xBOkd7u4tmphbU= X-Google-Smtp-Source: ABdhPJzQc/hUaIn/002F3gbiwpjuxr/C+C9w73Bk3dGUjUKyzJ0FYkn36wi9ihyuL4PVVytzKuRU/w== X-Received: by 2002:a05:600c:2246:: with SMTP id a6mr13705799wmm.170.1613382495403; Mon, 15 Feb 2021 01:48:15 -0800 (PST) Original-Received: from rltb ([2a01:e34:ecfc:a861:69b6:6aaf:dbd3:8964]) by smtp.gmail.com with ESMTPSA id h15sm6449691wrh.13.2021.02.15.01.48.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 01:48:14 -0800 (PST) Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=rpluim@gmail.com; helo=mail-wm1-x331.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:264840 Archived-At: >>>>> On Sun, 14 Feb 2021 17:53:29 +0200, Eli Zaretskii said: >> Hmm, specifying *initial* frame sizes and positions seems to work, b= ut >> only if done early enough, such as by setting 'default-frame-alist' = in >> early-init.el. I guess worst case we can destroy frames and recreate >> them instead of moving them. Someone (Martin?) suggested creating an >> invisible max-size top-level frame that we could use as the parent f= or >> all other frames on pgtk, since pgtk does allow us to move and resize >> child-frames. I don=CA=BCt know if that=CA=BCs actually possible. Eli> If it's feasible to fix these issues, we should try doing that, so Eli> that Emacs behaves the same as with other toolkits; controlling the Eli> position and geometry of a frame is pretty important, I think. Eli> But if it turns out infeasible to do that on Wayland, we should Eli> document that fact and move on. It turns out to be worse than I thought: the pgtk build has problems with 'width and 'height on the initial frame whether the backend is XWayland or Wayland (I haven't tested with a pure X11 window manager). Specifying the position/size of a new frame seems to work ok though. More generally, fixing this is not going to be trivial, as gtk_window_move under Wayland is designed to cause us grief: so one way to get eg desktop.el to work is to ensure that we know the required size and position of all the frames before we create them. Robert