From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 17643 invoked from network); 15 Mar 2022 09:09:17 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 15 Mar 2022 09:09:17 -0000 Received: from mail-qk1-f178.google.com ([209.85.222.178]) by 4ess; Tue Mar 15 02:07:58 -0400 2022 Received: by mail-qk1-f178.google.com with SMTP id s16so14738044qks.4 for <9front@9front.org>; Mon, 14 Mar 2022 23:07:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=FZWVPtEt3vGrcqxo1dRN6f8eR2b5N6ihtesku49fmUM=; b=p3M7t1VcmK0te4LEPtwXuuAAm0T6YsbnioHLUdbEO/lHwEf7Wa/Bfd7ipAsx9UYDJL EKtNDny0dhBYxZ8zviwB6XgAnqA+uvfHikb/KA4VFajoE0h25qNEWC+4jS1TB3l6iTD5 rPZYCfEGIS+FCV/Guh8I5b0zApGla5EQ5Kcgef5lQQX2dmWA4pQHaF8PHM9etPXCHrRX m9qjHFw5fWnVDwCiaXz9qWJcwjQXvqAYUqFNjYKoVYU7CS3zqq1TihJ+1L0OJ4A3Mp+w 3PibOZQiVz0Vmb409rst6yk6BLeVDLEifCY4mnJru8T+zj45PgutSN675WulpyA209vK ndNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=FZWVPtEt3vGrcqxo1dRN6f8eR2b5N6ihtesku49fmUM=; b=EamYuwX9YEOQverxjhK+weWgLns4MB9yAJA/L9CcpqLruXjlMFtAsxYLaI+KASvkfB WfPbdC2g/Vk82NbT1oSD+IaSKsEciIMkboY3+mjkhVN67T69dTE1H8O8p10FkN5ryiwm plVvJJ/loVNVzviLXkyq6wspCG8ij8SgvMhNTRr2XFnbR5hzI5ohcKclrnJEUd0Jeyko r/R/6k6P//7Yp2N7Hvjc8cnIum7lkgqXXm7d27bveQD8j5qvx716tBoyhcz+BEhkrBqj AWuodryHK4D0CC5T4DmrZxx3MiwiPJJLEstLzOQzZ4SNLzQOicPpcMg0B/KX4K83T7TL /Dbw== X-Gm-Message-State: AOAM532X4IaWVoXhRn+LlHN/w0U8Gv/dLVTcFSox5COWi0mlyRkx0Fi4 1swhZEPT1yXBazx51KKd/Wm9asS7kHo= X-Google-Smtp-Source: ABdhPJwOpj3Wxcg5fkRb3INgC2QP3FVQBJsHDNBzhIl8rb0BezejPDlSo8c1c/D2ikDZnQqrnN3fVQ== X-Received: by 2002:a05:622a:24c:b0:2d7:1d1b:c98d with SMTP id c12-20020a05622a024c00b002d71d1bc98dmr20945540qtx.592.1647320847325; Mon, 14 Mar 2022 22:07:27 -0700 (PDT) Return-Path: Received: from smtpclient.apple (c-67-184-39-205.hsd1.il.comcast.net. [67.184.39.205]) by smtp.gmail.com with ESMTPSA id i18-20020ac85c12000000b002e1ce74f1a8sm3988377qti.27.2022.03.14.22.07.26 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Mar 2022 22:07:26 -0700 (PDT) From: Xiao-Yong Jin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Message-Id: Date: Tue, 15 Mar 2022 00:07:25 -0500 To: 9front@9front.org X-Mailer: Apple Mail (2.3696.80.82.1.1) List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: dependency dependency-based HTTP session API Subject: [9front] acme hides top windows after loading a dump file Reply-To: 9front@9front.org Precedence: bulk When loading a dump file contains a window with an only tag line, acme = hides that window. Here is a simple dump file reproduces this issue. #### dump file begins #### /tmp /lib/font/bit/pelm/unicode.8.font /lib/font/bit/pelm/unicode.8.font 0 f 0 5 175 175 1=20 5 40 175 1 0 = /sys/src/cmd/acme/ Del Snarf Get | Look=20 f 0 4 330 330 3=20 4 27 330 1 0 /tmp/ Del = Snarf Get | Look=20 #### dump file ends #### This issue is introduced in commit = 47b7dc5ccd77bc247ab15cfab3a7a8f955771c70 Reinstate two lines as the patch below fix the issue. diff ca313087c1715a0331a58c01ad104632d366f057 uncommitted --- a/sys/src/cmd/acme/wind.c +++ b/sys/src/cmd/acme/wind.c @@ -188,6 +188,8 @@ w->taglines =3D wintaglines(w, r); r1.max.y =3D min(r.max.y, r1.min.y + = w->taglines*font->height); } + if(Dy(r1) < font->height) + r1.max.y =3D r1.min.y+font->height; /* If needed, resize & redraw tag. */ y =3D r1.max.y; if(!safe || !w->tagsafe || !eqrect(w->tag.r, r1)){