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: Problems with compositing-enabled metacity in gnome enviroment Date: Fri, 11 Feb 2011 17:02:44 +0100 Message-ID: <4D555DA4.8050303@swipnet.se> References: <4D553F00.2070609@swipnet.se> 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 1297440310 17326 80.91.229.12 (11 Feb 2011 16:05:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Feb 2011 16:05:10 +0000 (UTC) Cc: emacs-devel To: Darren Hoo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 11 17:05:06 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PnvUY-0008IP-0R for ged-emacs-devel@m.gmane.org; Fri, 11 Feb 2011 17:05:06 +0100 Original-Received: from localhost ([127.0.0.1]:36510 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnvUX-0002V5-Bz for ged-emacs-devel@m.gmane.org; Fri, 11 Feb 2011 11:05:05 -0500 Original-Received: from [140.186.70.92] (port=54890 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnvSL-0001Px-BQ for emacs-devel@gnu.org; Fri, 11 Feb 2011 11:02:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnvSK-0005YZ-5E for emacs-devel@gnu.org; Fri, 11 Feb 2011 11:02:49 -0500 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]:37733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnvSJ-0005YO-PS for emacs-devel@gnu.org; Fri, 11 Feb 2011 11:02:48 -0500 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 15E16C171 for ; Fri, 11 Feb 2011 17:02:46 +0100 (CET) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjJIAEfsVE1V4S1kPGdsb2JhbACIZp0NDAEBAQE1L7sqhV0Ejy4 X-IronPort-AV: E=Sophos;i="4.60,455,1291590000"; d="scan'208";a="172245714" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb2.telenor.se with ESMTP; 11 Feb 2011 17:02:45 +0100 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 15F3D7FA05A; Fri, 11 Feb 2011 17:02:45 +0100 (CET) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 62.127.194.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135896 Archived-At: 2011-02-11 15:53, Darren Hoo skrev: > The version of metacity I am using is 2.30.1-3 in Debian Unstable. Is > there any related > bug report of metacity that I can refer to? No, but I guess you can file one. BTW, I got 2.30.2-0 in ubuntu, and I always get the bug you see, even with emacs-23 that hasn't the commit you mention below. > > I had experienced the varnishes of Gnome panel a long time ago, But > since then I > never experience it for at least half a year, aslo with Chromium I > never encounter > such symptoms as you mentioned. > > The only thing I want with compositing is the fancy tranparency of > Emacs, switching to > compiz seems not to be a choice for me, compiz is somewhat over-bloated to me. > >> >> BTW, you probably meant (set-frame-parameter nil 'alpha 94). Also, please >> use report-emacs-bug for bugs like these. > Got it > >> I reverted to the version before this commit, but the bug in metacity remains. It is >> probably a fluke that your meatcity works with> that version. > > just FYI, it is this specific hunk of the commit that triggers the > (possible) bug of metacity > Just revert this hunk of the commit Emacs works as expected at least for me. > > src/xterm.c: > > @@ -489,14 +489,14 @@ x_set_frame_alpha (struct frame *f) > &data); > > if (rc == Success&& actual != None) > - if (*(unsigned long *)data == opac) > - { > - XFree ((void *) data); > - x_uncatch_errors (); > - return; > - } > - else > + { > XFree ((void *) data); > + if (*(unsigned long *)data == opac) > + { > + x_uncatch_errors (); > + return; > + } > + } > x_uncatch_errors (); > } Ouch, this looks really bad. Not only is data accesses after it has been free:d, but we may be doing catch errors twice and uncatch only once. I fixed this, see if it works with your metacity. It doesn't for me. Jan D.