From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.bugs Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Date: Wed, 05 Oct 2011 09:01:28 +0200 Message-ID: <4E8C00C8.9010208@swipnet.se> References: <87ljtgzvgg.fsf@unicorn.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1317798134 7943 80.91.229.12 (5 Oct 2011 07:02:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2011 07:02:14 +0000 (UTC) Cc: Bo Lin , 1867@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 05 09:02:07 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RBLUV-0008QW-3F for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Oct 2011 09:02:07 +0200 Original-Received: from localhost ([::1]:39550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBLUU-0002uH-AY for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Oct 2011 03:02:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBLUR-0002tR-E5 for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 03:02:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBLUP-0003SB-TZ for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 03:02:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBLUP-0003Rz-S2 for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 03:02:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBLUQ-0002Q7-IC for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 03:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Jan D." Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 07:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 1867-submit@debbugs.gnu.org id=B1867.13177981049278 (code B ref 1867); Wed, 05 Oct 2011 07:02:02 +0000 Original-Received: (at 1867) by debbugs.gnu.org; 5 Oct 2011 07:01:44 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBLU6-0002Pa-QZ for submit@debbugs.gnu.org; Wed, 05 Oct 2011 03:01:43 -0400 Original-Received: from smtprelay-b22.telenor.se ([195.54.99.213]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBLU3-0002PJ-F8 for 1867@debbugs.gnu.org; Wed, 05 Oct 2011 03:01:41 -0400 Original-Received: from iph1.telenor.se (iph1.telenor.se [195.54.127.132]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id 0A065E9E3E for <1867@debbugs.gnu.org>; Wed, 5 Oct 2011 09:01:31 +0200 (CEST) X-SENDER-IP: [85.225.45.201] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArtWAOL/i05V4S3JPGdsb2JhbABCiTSeWhkBAQEBNzKBUwEBBTgeIgEQCw4KCRYPCQMCAQIBGwwKFAYNAQcBAYd7t0iHIwSZDowf X-IronPort-AV: E=Sophos;i="4.68,490,1312149600"; d="scan'208";a="490341336" Original-Received: from c-c92de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.201]) by iph1.telenor.se with ESMTP; 05 Oct 2011 09:01:31 +0200 Original-Received: from [10.225.17.241] (unknown [193.45.43.33]) by coolsville.localdomain (Postfix) with ESMTPSA id 9A4A27FA058; Wed, 5 Oct 2011 09:01:30 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 05 Oct 2011 03:02:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52203 Archived-At: Glenn Morris skrev 2011-10-05 03:13: > Bo Lin wrote: > >> 1. Choose a font FONTNAME which supports antialiasing. Confirm >> antialiasing is turned on for FONTNAME in fontconfig: >> >> $ fc-match -v FONTNAME |grep antialias >> antialias: FcTrue(w) >> >> 2. emacs -q >> 3. M-: (set-face-attribute 'default nil :font "FONTNAME") >> 4. C-x 3 C-x 2 >> >> Now there are three windows. We'll name the upper-left window 1, >> lower-left window 2, and the right window 3. >> >> 5. C-x b *scratch* RET C-x o C-x b *Messages* RET C-x o C-h i >> 6. Using mouse, quickly drag mode-line of window 1 up and down. >> >> Observe how text in window 1 and 3 flicker as windows 1 and 2 are >> resized. The main point is that window 3, though totally unaffected by >> the resizing of windows 1 and 2 and showing a different buffer, is still >> been constantly redrawn. This quite annoying, as even when the >> mini-buffer window resizes, which happens quite frequently, will cause >> the whole frame to flicker. >> >> This flickering does *not* occur if using old X core fonts. To confirm, >> start with `emacs -q -fn fixed' and repeat steps 4-6. > [...] >> In GNU Emacs 23.0.60.7 (i686-pc-linux-gnu, GTK+ Version 2.14.4) >> of 2009-01-12 on unicorn >> Windowing system distributor `The X.Org Foundation', version 11.0.10502000 > > > I don't seem to be able to reproduce this. Do you still see this with > the latest version of Emacs? > > It is possible that this is not visible on faster systems. Antialiased fonts requires erase of the old text then write of the new text from the client (i.e. Emacs). This is slower than with core fonts where you call XDrawImageString and the X server then does both erasing and writing. The fact that unaffected windows get redrawn must have something to do with the display engine. That may have been improved in later versions. FWIW, I can't see any text flicker in the scenario above. However, the hollow cursor in the non-selected windows do flicker which indicates that there is some redrawing going on. Jan D.