From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: xterm.c (x_clear_frame) - commented out call to XClearWindow Date: Tue, 22 Nov 2011 07:41:51 +0100 Message-ID: References: <87k46uukcl.fsf@gnu.org> <87d3cldffb.fsf@gnu.org> <391CC3E1-BEF3-4561-8902-8BEE63CDEAE7@swipnet.se> <87wras4taz.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1321944129 32428 80.91.229.12 (22 Nov 2011 06:42:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Nov 2011 06:42:09 +0000 (UTC) Cc: Geoff Gole , Emacs development discussions To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 22 07:42:03 2011 Return-path: Envelope-to: ged-emacs-devel@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 1RSk3M-0008Io-3s for ged-emacs-devel@m.gmane.org; Tue, 22 Nov 2011 07:42:00 +0100 Original-Received: from localhost ([::1]:52059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSk3L-0005J3-IK for ged-emacs-devel@m.gmane.org; Tue, 22 Nov 2011 01:41:59 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:51536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSk3I-0005Iy-Rk for emacs-devel@gnu.org; Tue, 22 Nov 2011 01:41:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSk3H-00056F-5r for emacs-devel@gnu.org; Tue, 22 Nov 2011 01:41:56 -0500 Original-Received: from mailout.melmac.se ([62.20.26.67]:62821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSk3G-000568-UI for emacs-devel@gnu.org; Tue, 22 Nov 2011 01:41:55 -0500 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 941F39903 for ; Tue, 22 Nov 2011 07:41:52 +0100 (CET) Original-Received: (qmail 10172 invoked by uid 89); 22 Nov 2011 06:41:52 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 22 Nov 2011 06:41:52 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id C9E997FA058; Tue, 22 Nov 2011 07:41:51 +0100 (CET) In-Reply-To: <87wras4taz.fsf@gnu.org> X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 62.20.26.67 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146134 Archived-At: 22 nov 2011 kl. 06:31 skrev Chong Yidong: > Jan Dj=E4rv writes: >=20 >> The uncommented XClearWindow in x_clear_frame must be there so I >> activated it again... Flickering is almost unavoidable for Gtk as we >> bypass the normal Gtk drawing stuff. >=20 > Obviously, I disagree. AFAICT this has nothing to do with GTK. That depends on what you mean with "this". >=20 > The XClearWindow is obviously unnecessary if Emacs covers the entire > frame area when drawing glyph strings during redisplay, since the = glyph > strings apply the background color. The problem here arises because > there are some areas of the frame not drawn over durig redisplay, > e.g. the leftover spaces to the bottom and right in fullscreen mode. > The fact that these areas are unpainted may be regarded as a bug. A > suitable temporary work-around would be to paint over them---but > painting the entire frame is clearly an overreach. It would be nice if we could just fix ther leftover spaces. But I think = it is too long in to pretest to fix this. You have to first find all = leftover spaces (i.e. under/between scroll bars, minibuffer, fringe) in = all cases (font size not a multiple of frame size, fullscreen, and so = on) and in all configurations (lucid, Gtk, just X, motif, with or = without native scrollbars, with or without Xaw3d scrollbars). And then for different environments, some redraw errors only appears = with XFCE, some with Gnome-shell. Jan D.