From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46963: 28.0.50; Bad WM size hints in GTK-3 builds Date: Sat, 06 Mar 2021 22:13:32 +0200 Message-ID: <837dmkujkj.fsf@gnu.org> References: <8a75669a-fa60-ba6f-7f60-67b1ef3d8783@gmx.at> <83h7lownju.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16289"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46963@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 06 21:14:22 2021 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 1lIdJd-00048Z-Bh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 21:14:21 +0100 Original-Received: from localhost ([::1]:50176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIdJc-0008RN-AC for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 15:14:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIdJK-0008Qt-PF for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 15:14:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55094) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIdJK-000350-Hr for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 15:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIdJK-0000of-DV for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 15:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Mar 2021 20:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46963 X-GNU-PR-Package: emacs Original-Received: via spool by 46963-submit@debbugs.gnu.org id=B46963.16150616303105 (code B ref 46963); Sat, 06 Mar 2021 20:14:02 +0000 Original-Received: (at 46963) by debbugs.gnu.org; 6 Mar 2021 20:13:50 +0000 Original-Received: from localhost ([127.0.0.1]:38407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIdJ7-0000o1-OR for submit@debbugs.gnu.org; Sat, 06 Mar 2021 15:13:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIdJ6-0000nn-GD for 46963@debbugs.gnu.org; Sat, 06 Mar 2021 15:13:48 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45262) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIdJ1-00034P-8F; Sat, 06 Mar 2021 15:13:43 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2172 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lIdJ0-00057H-NZ; Sat, 06 Mar 2021 15:13:43 -0500 In-Reply-To: (message from martin rudalics on Sat, 6 Mar 2021 20:29:02 +0100) 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" Xref: news.gmane.io gmane.emacs.bugs:201681 Archived-At: > Cc: 46963@debbugs.gnu.org > From: martin rudalics > Date: Sat, 6 Mar 2021 20:29:02 +0100 > > > Alternatively, we could disallow making frames smaller than 4 lines, > > because making our code jump through hoops for uses cases that are > > supposed to be rare, to say the least, makes little sense to me. > > That's what I'm trying to do because you asked for such a solution. It > cannot be a fixed number of lines like 4 because minibuffer-only or > ediff control frames want less. OTOH four lines are not enough when > shrinking a frame with say four windows stacked above each other. > > Rather, I calculate, from the number of vertically stacked windows, the > presence of scroll bars, mode, header and tab bar lines and a plethora > of other factors a minimal height of the frame and try to pass that to > the window manager. But GTK3 intercepts me. Then perhaps we should document this oddity in PROBLEMS and forget about it.