From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: GTK scroll bar artifacts [Was: Re: GTK scroll bar question] Date: Thu, 31 Jul 2014 17:03:40 +0200 Message-ID: <53DA5ACC.4040607@swipnet.se> References: <53D8D2DE.4090700@yandex.ru> <53D8E765.2030303@gmx.at> <53DA50B0.7040606@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1406819047 14729 80.91.229.3 (31 Jul 2014 15:04:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2014 15:04:07 +0000 (UTC) Cc: Emacs development discussions To: Dmitry Antipov , martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 31 17:04:03 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XCrti-0006ja-Vj for ged-emacs-devel@m.gmane.org; Thu, 31 Jul 2014 17:04:03 +0200 Original-Received: from localhost ([::1]:57152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCrti-0001YL-9s for ged-emacs-devel@m.gmane.org; Thu, 31 Jul 2014 11:04:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCrtZ-0001Xd-Ou for emacs-devel@gnu.org; Thu, 31 Jul 2014 11:03:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCrtT-00085J-T6 for emacs-devel@gnu.org; Thu, 31 Jul 2014 11:03:53 -0400 Original-Received: from mailfe08.swip.net ([212.247.154.225]:58636 helo=swip.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCrtT-00084z-MZ for emacs-devel@gnu.org; Thu, 31 Jul 2014 11:03:47 -0400 X-T2-Spam-Status: No, hits=0.0 required=5.0 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 521845350; Thu, 31 Jul 2014 17:03:45 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <53DA50B0.7040606@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.247.154.225 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:173321 Archived-At: Dmitry Antipov skrev 2014-07-31 16:20: > On 07/30/2014 04:39 PM, martin rudalics wrote: > >> I suppose it's related to changes in GTK3. I often see this: >> >> http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg02228.html >> >> And there's also bug#17982. > > From GTK3's gtkeventbox.c: > > * You should generally make your event box invisible if > * you just want to trap events. Creating a visible window > * may cause artifacts that are visible to the user, especially > * if the user is using a theme with gradients or pixmaps. > > This helps in my case. OK to install? No. The reason for having the event box is to have a window to draw into, not to trap events. If you make it invisible, there will be no window to draw into and the scroll bar will draw into the parent window, which is what we don't want. Since Emacs draws and clears the window with X calls, the scroll bar does not know it should redraw itself, leading to all kind of races. Jan D.