From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Fussner via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#44794: 28.0.50; Frame creation broken with (tool-bar-mode -1) Date: Sun, 13 Dec 2020 21:22:29 +0000 Message-ID: References: <838satxufx.fsf@gnu.org> <83o8jpw813.fsf@gnu.org> <83lfetw4bf.fsf@gnu.org> <83tuspczbw.fsf@gnu.org> Reply-To: David Fussner Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2311"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , 44794@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 13 22:29:45 2020 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 1koYw4-0000SF-Hb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 22:29:44 +0100 Original-Received: from localhost ([::1]:38862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koYw0-0007YV-OD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 16:29:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koYsa-0007Vw-Hx for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 16:26:10 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koYsT-0000uM-VT for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 16:26:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1koYsT-0007yn-Qe for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 16:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Fussner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Dec 2020 21:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44794 X-GNU-PR-Package: emacs Original-Received: via spool by 44794-submit@debbugs.gnu.org id=B44794.160789470130409 (code B ref 44794); Sun, 13 Dec 2020 21:26:01 +0000 Original-Received: (at 44794) by debbugs.gnu.org; 13 Dec 2020 21:25:01 +0000 Original-Received: from localhost ([127.0.0.1]:50587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koYrV-0007uG-3J for submit@debbugs.gnu.org; Sun, 13 Dec 2020 16:25:01 -0500 Original-Received: from mail-qv1-f44.google.com ([209.85.219.44]:38275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koYrT-0007tW-Hc for 44794@debbugs.gnu.org; Sun, 13 Dec 2020 16:24:59 -0500 Original-Received: by mail-qv1-f44.google.com with SMTP id az16so4864380qvb.5 for <44794@debbugs.gnu.org>; Sun, 13 Dec 2020 13:24:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oOpMvzf6rMprNubnDgb+ojd28kbjvHidWT25dTLVZn0=; b=TSlag4ejXoAo3/nO4brDmfDmFfyNqwmmO2yJuyFtu0/cjVHE7iEUiA7FOFmWoeHhHJ Ledi3E3/RK5kodziU0XjFRPCtIESmKI3fUvaSDQV6KgOeRGnui3H0RsuZnoCNghOJrZN DpoROlHEOYmJf7b3ecWBAKRW8K8qfgSbFJ1VNaXuKc2/zHiZfRq+ocRcjQOOk3I62TI5 aClK1SPo9FsAq1G3gDUQHd8LZH0YsPt3n2bgLlVQKHvVfYHDzVHozm7bN4Fi7AlmURfN +1n1iQ3H+NPL0zhUVYhjmw1uAWKjhhNF52ipuzKcXUsRurrwWMW8fFU77nOVCsyCqqcc MYgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oOpMvzf6rMprNubnDgb+ojd28kbjvHidWT25dTLVZn0=; b=pz7J05iXmn1+MFSXXfTC18hujpjwuSrgGhcgMZGiY1WNEv5HhVIBRCfoQtN1TE0CHm VIVnnnL7I1FhPhRk17dmI0D8GiRUI8odekfKtgHC1FuRkyYUK0o1aMp6Vixz5GDdhx+I FxaAmnOTMh9svaumwq1GP+K/vfmxAdSJDGl4XsUDMfgPf+bw9nsETt1mCgIU2yAw9q4m ydZvhDsSU9l0OicYIgB2zlxFhzP0kMbpkwVb2dr+15Af7Q2wlN2tRIgu2mdo/VnSXp9y dO3Y7oVxyvPafw/wJ9qAz651xb6axRKAvnDE8l6E7PiWNqD1QFXHMvs5ga/fF3ljVxNc CsPg== X-Gm-Message-State: AOAM530dfTOYe/QpEFBbYnHc/d3VRXQQwNe7R3EVe2QDB7IXu3zi2583 JRuFQ09DqOayyTJ3Ta0ceT9IScGJ+qR9oyDe/NE= X-Google-Smtp-Source: ABdhPJxkm0o2sIiSe3Df53ArgduCNxupT810v6kkoU0YYv8v1aJFhoKX4jtAqjExQHv5ycaEuWXm3cyX5jYsgo0nCew= X-Received: by 2002:a05:6214:714:: with SMTP id b20mr17941981qvz.36.1607894693834; Sun, 13 Dec 2020 13:24:53 -0800 (PST) In-Reply-To: <83tuspczbw.fsf@gnu.org> 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:196016 Archived-At: I'm sorry I haven't been clear enough. The original bug -- the empty new frame, with only a title bar, menu bar, and scroll bar, but with an empty main window and no mode line or minibuffer -- still occurs even after clearing the kwin setting I mentioned. Kwin was responsible for the mistake I made in my original bisection, which showed that Stefan's commit (36431e1679) was the first to produce the bug. In fact, Stefan's commit only revealed a bug that had been produced, I believe, by J Scott Berg's earlier commit (2c0cd9008) which altered a test in xterm.c (l. 8950). That revised test, when I stepped through the code, fails to trigger a resize when there is no tool bar, though it does trigger a resize when there is a tool bar. (The old test, pre-2c0cd9008, triggers a resize in both situations.) For reasons that are still obscure to me, without that resize all text in the main window is invisible after the creation of the new frame, and remains so until I manually resize the frame. Compiling with different toolkits and with or without cairo drawing affects whether the bug appears or not, but in the default gtk3 + cairo build the bug is still present, even without the spurious kwin setting. As I understood the thread concerning bug #44002, that fix was not regarded as obviously safe, and was therefore reserved for master. I'm suggesting, therefore, that at least in my case that fix isn't safe, though it would appear that I'm the only user running master who has run into such an issue. I had hoped that someone might have an idea of how to fix J Scott Berg's fix so that it worked both for vcxsrv and for 32-bit slackware 14.2. (None of my attempts have worked). On Sun, 13 Dec 2020 at 18:53, Eli Zaretskii wrote: > > > From: David Fussner > > Date: Sun, 13 Dec 2020 18:17:41 +0000 > > Cc: Stefan Kangas , 44794@debbugs.gnu.org > > > > Stefan's commit did _not_ cause the bug, merely uncovered it. Kwin was > > setting a minimum frame size for frames that matched the original > > initial frame title "emacs@system_name", so when Stefan changed that > > to "GNU Emacs at system_name" kwin no longer resized the frame, and > > that seems to be the root of the problem. (I haven't any idea whatever > > where that kwin setting came from.) > > > > Having eliminated the kwin setting, I was able to bisect again and > > found that 2c0cd9008 was the culprit > > If the original problem was due to kwin, and you solved it, then what > additional problem remains after that, for which you looked for the > culprit by bisection? > > > which was J. Scott Berg's fix > > for bug #44002 involving the vcxsrv X server on Windows. Reverting > > that commit fixes my issue. Stepping through the code suggests that > > his extra test in xterm.c (l. 8950) is preventing a resize event when > > creating a new frame on my machine when tool-bar-mode is off. With > > that mode on, the resize event still occurs, and new frames are > > created normally. > > Then what was the problem that kwin was responsible for?