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_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 30791 invoked from network); 14 May 2021 07:07:17 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 14 May 2021 07:07:17 -0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by 1ess; Fri May 14 03:00:57 -0400 2021 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 3DFB95C01C6; Thu, 13 May 2021 16:50:26 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 13 May 2021 16:50:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=biobuf.link; h= message-id:to:subject:date:from:mime-version:content-type :content-transfer-encoding; s=fm2; bh=AN0x+aQIQH6wOF0mJw47T2ARvG Oo4FNwQkD2RvWYP+4=; b=H6ny9XV4iyzzWjtxexo9dohJk9A2TOSzFOJwoDP4sw u4bOi0YNOz0dB6r8XJK7iAUvnjxPXXnSWbgh2NauRbXaRpj/8W79SByQ8H4w8Nbw HiEPfJ4KNJrv8WP0L5qsTH8KsVKsXP+YP8MmH58f9ogIeFm7AU2szOQZounc2XpE snKrXdtQYYxCDFX4uVebph6pgHWQnUkOobB4xbmfISWA3bhPjm58sIoK8kypgwoj L9HFMnY7Tl8m7sJa3JLf8lL3DJSsns1ia8cR+ACsnNTGXNMu5cx6ENVlEIYDemi7 3yjo38kn7CtExGU7bXOs+Cy3AJLto4JNlp2AjrNitMdQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=AN0x+a QIQH6wOF0mJw47T2ARvGOo4FNwQkD2RvWYP+4=; b=wOntDu0uyW7rfqtNeHOpM/ EZVEO+1pGC/4THnune0Z0Jloa1yt55W5eYRyGi0I8g8GfTwWDCv/fpro8Zplvx3e yZB3Un4zAdkKXsmqaBVRiHspo02psZZOGHJ2J9REGlwkIMrUbneQkou0tjZaCOKb a5+wt+ipHFskHG7ugwM6ML2EXyXyPf/5y+NpaEPLwHHeMzX0dlYpUBhw4xB3ma4b QQXAkjt2kPlTMTg73w/Cs9izB4DyCVJ5Y9IBja/ov81ckBPBlfRCG/ME+7djZQLh Aeo2q3Q8djWidXL11dg2fCjiJvG2fQW1Wf1mdGXnvE5yURcoBifJTcrijwQ8D/6Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdehgedgudehgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkffvufffhfggtgfgsehtjeejtd dttddvnecuhfhrohhmpehjrghmvghsuchprghlmhgvrhcuoehjrghmvghssegsihhosghu fhdrlhhinhhkqeenucggtffrrghtthgvrhhnpeffleehhffhfefgffdtieffheeukeeule efhfeutedvhfehvefgkeeghedtheekjeenucfkphepkedtrdduleehrdegledrvdehnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhgrmhgvsh essghiohgsuhhfrdhlihhnkh X-ME-Proxy: Received: from t430s (cpc99362-croy26-2-0-cust24.19-2.cable.virginm.net [80.195.49.25]) by mail.messagingengine.com (Postfix) with ESMTPA for <9front@9front.org>; Thu, 13 May 2021 16:50:25 -0400 (EDT) Message-ID: <308EFB02035781D4F6CF8FD53FA2B543@biobuf.link> To: 9front@9front.org Date: Thu, 13 May 2021 21:50:17 +0100 From: james palmer MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: interface factory Subject: [9front] [patch] fix text sliding around in the mothra input bar. Reply-To: 9front@9front.org Precedence: bulk hello, today i noticed this weird bug, if you move a mothra window, the text in the input bar stays in the same place on the screen horizontally. it came in with sigrid's changes to input handling in libpanel. fix below. - james # HG changeset patch # User james palmer # Date 1620937759 -3600 # Node ID 95ad1050de60c6fa16191db5aff5b1c4b0cc8150 # Parent d06030dfe4ed915c55acf67d6c188beaac7b1f12 libpanel: fix text sliding around in libpanel text entry widgets. diff -r d06030dfe4ed -r 95ad1050de60 sys/src/cmd/mothra/libpanel/entry.c --- a/sys/src/cmd/mothra/libpanel/entry.c Thu May 13 21:33:26 2021 +0100 +++ b/sys/src/cmd/mothra/libpanel/entry.c Thu May 13 21:29:19 2021 +0100 @@ -64,10 +64,8 @@ ep = p->data; b = p->b; - if(Dx(r) != Dx(ep->lastr)){ - ep->text = r.min; - ep->lastr = r; - } + ep->text = r.min; + ep->lastr = r; tick = ep->text; tick.x += runestringnwidth(font, s, ep->a);