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 13:04:37 +0200 Message-ID: <83h7lownju.fsf@gnu.org> References: <8a75669a-fa60-ba6f-7f60-67b1ef3d8783@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22042"; 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 12:08:00 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 1lIUmu-0005eE-8B for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 12:08:00 +0100 Original-Received: from localhost ([::1]:56280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIUmt-00010p-9A for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 06:07:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIUk2-0004zQ-O0 for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 06:05:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIUk2-0005zg-F4 for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 06:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIUk2-0001Gf-7L for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 06:05: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 11:05: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.16150286974860 (code B ref 46963); Sat, 06 Mar 2021 11:05:02 +0000 Original-Received: (at 46963) by debbugs.gnu.org; 6 Mar 2021 11:04:57 +0000 Original-Received: from localhost ([127.0.0.1]:36135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIUjx-0001GK-A0 for submit@debbugs.gnu.org; Sat, 06 Mar 2021 06:04:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIUjv-0001G4-J8 for 46963@debbugs.gnu.org; Sat, 06 Mar 2021 06:04:56 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37130) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIUjq-0005q5-4t; Sat, 06 Mar 2021 06:04:50 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3356 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lIUjo-0000Mr-Vj; Sat, 06 Mar 2021 06:04:49 -0500 In-Reply-To: <8a75669a-fa60-ba6f-7f60-67b1ef3d8783@gmx.at> (message from martin rudalics on Sat, 6 Mar 2021 11:47:39 +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:201608 Archived-At: > From: martin rudalics > Date: Sat, 6 Mar 2021 11:47:39 +0100 > > The culprit of the GTK3 behavior is Jan Djärv's fix for Bug#8919 which > overrides X11 functions with homemade ones. Commenting out these > functions fixes the behavior here. I'm not sure how to proceed though. > > Reverting Jan's change might break Emacs for KDE users again although I > doubt it. A configure option is no option for people who do not build > their Emacsen. So a Lisp option is probably the only way to go which > means to copy the functions from SetNrmHint.c to emacsgtkfixed.c. Or > maybe remove the emacsgtkfixed files altogether? Any ideas? When Jan made that change, did GTK3 already exist? If not, then we could avoid using that code for GTK3. 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.