From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 14 07:20:17 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0A7916A41F for ; Fri, 14 Oct 2005 07:20:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1123F43D48 for ; Fri, 14 Oct 2005 07:20:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9E7KGW3050323 for ; Fri, 14 Oct 2005 07:20:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9E7KGGp050322; Fri, 14 Oct 2005 07:20:16 GMT (envelope-from gnats) Resent-Date: Fri, 14 Oct 2005 07:20:16 GMT Resent-Message-Id: <200510140720.j9E7KGGp050322@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Jukka A. Ukkonen" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84E3816A41F for ; Fri, 14 Oct 2005 07:16:57 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C8C443D46 for ; Fri, 14 Oct 2005 07:16:57 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9E7GvqO091431 for ; Fri, 14 Oct 2005 07:16:57 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j9E7Gvl6091430; Fri, 14 Oct 2005 07:16:57 GMT (envelope-from nobody) Message-Id: <200510140716.j9E7Gvl6091430@www.freebsd.org> Date: Fri, 14 Oct 2005 07:16:57 GMT From: "Jukka A. Ukkonen" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/87424: xterm-205 stops showing window dimensions as character when the font size is changed X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 07:20:17 -0000 >Number: 87424 >Category: ports >Synopsis: xterm-205 stops showing window dimensions as character when the font size is changed >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 14 07:20:16 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Jukka A. Ukkonen >Release: 4.11-STABLE >Organization: private citizen >Environment: FreeBSD mjolnir 4.11-STABLE FreeBSD 4.11-STABLE #0: Wed Sep 21 07:56:19 EET DST 2005 jau@mjolnir:/home/src/sys/compile/Mjolnir i386 >Description: When xterm-205 is started it shows window dimensions as characters. E.g. xterm-200 never stopped doing so. Anyhow xterm-205 shows dimensions as characters when you change the window size only as long as you do not touch the font size. When one modifies the initial default font size to something else xterm-205 stops showing the dimensions as characters and goes over to displaying pixel counts. This is quite anoying for people who predominantly still read and write. By the symptoms of it I would guess that someone has tried to optimize xterm code by moving an apparently useless pixels per characters adjustment out of the event loop (after a font change) to be done only when the program starts. When xterm window scaling code no longer knows how large a character is it starts displaying pixels only. >How-To-Repeat: Follow these simple steps... - Start xterm-205. - Rescale the window and notice how the dimensions are still given as characters. - Change the font size. - Again rescale the window noticing how the dimensions suddenly appear as pixels. - Try repeating the last 2 steps a few times to confirm what you just noticed. - Be annoyed. ;-) >Fix: Apparently a pixels per character size adjustment needs to be put back somewhere after a font size change. Details are still unknown. Since xterm-200 and xterm-205 have been behaving differently in this respect, a comparison of source code should give an idea what has been lost. >Release-Note: >Audit-Trail: >Unformatted: