From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#20677: tooltips generate garbage Date: Wed, 03 Jun 2015 16:01:04 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <556639D1.1030702@alice.it> <83iobdxvzi.fsf@gnu.org> <556C462E.5050906@alice.it> <83a8wjts15.fsf@gnu.org> <556C812C.4030901@alice.it> <83zj4js8nz.fsf@gnu.org> <556CD4EB.8080602@alice.it> <83oakysuu4.fsf@gnu.org> <556D7608.4070006@alice.it> <556D78C6.5070309@alice.it> <83k2vmrwdx.fsf@gnu.org> <876176qg7o.fsf@web.de> <871thuqfv3.fsf@web.de> <87wpzmp0lo.fsf@web.de> <838uc2rspt.fsf@gnu.org> <87wpzm9iiz.fsf@web.de> <836176rkqc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1433315108 22291 80.91.229.3 (3 Jun 2015 07:05:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2015 07:05:08 +0000 (UTC) Cc: Michael Heerdegen , 20677@debbugs.gnu.org, angelo.graziosi@alice.it To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 03 09:04:57 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Z02iJ-0006Jc-RK for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jun 2015 09:03:47 +0200 Original-Received: from localhost ([::1]:33741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z02iI-0002i8-TR for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jun 2015 03:03:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z02gl-0008PJ-13 for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 03:02:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z02gd-00019B-AE for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 03:02:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z02gd-00018p-7o for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 03:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z02gc-0006ws-Iw for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 03:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Jun 2015 07:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20677 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20677-submit@debbugs.gnu.org id=B20677.143331487126635 (code B ref 20677); Wed, 03 Jun 2015 07:02:02 +0000 Original-Received: (at 20677) by debbugs.gnu.org; 3 Jun 2015 07:01:11 +0000 Original-Received: from localhost ([127.0.0.1]:38182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z02fl-0006vW-U0 for submit@debbugs.gnu.org; Wed, 03 Jun 2015 03:01:10 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:55273) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z02fi-0006vN-Ef for 20677@debbugs.gnu.org; Wed, 03 Jun 2015 03:01:07 -0400 Original-Received: from fermat1.math.s.chiba-u.ac.jp (fermat [192.168.32.10]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id DB304C055D; Wed, 3 Jun 2015 16:01:04 +0900 (JST) In-Reply-To: <836176rkqc.fsf@gnu.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?UTF-8?Q?Shij=C5=8D?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:103533 Archived-At: >>>>> On Tue, 02 Jun 2015 22:08:59 +0300, Eli Zaretskii said: >> > Can you see whether Emacs gets an expose event when the tip pops down? >> >> Sorry, you've found my limit in understanding. How can check that? > The function expose_frame (defined in xdisp.c) should be called when > such an event comes in. Could those who see this problem try the following patches, one at a time? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp [FIRST] diff --git a/src/xterm.c b/src/xterm.c index 25c0d87..691ede5 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -7668,7 +7668,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, } else { -#if defined (USE_GTK) && ! defined (HAVE_GTK3) && ! defined (USE_CAIRO) +#ifdef USE_GTK /* This seems to be needed for GTK 2.6 and later, see http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15398. */ x_clear_area (f, [SECOND] diff --git a/src/xterm.c b/src/xterm.c index 25c0d87..32d4d3a 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -7668,12 +7668,14 @@ handle_one_xevent (struct x_display_info *dpyinfo, } else { -#if defined (USE_GTK) && ! defined (HAVE_GTK3) && ! defined (USE_CAIRO) +#ifdef USE_GTK /* This seems to be needed for GTK 2.6 and later, see http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15398. */ - x_clear_area (f, - event->xexpose.x, event->xexpose.y, - event->xexpose.width, event->xexpose.height); + x_clear_area1 (event->xexpose.display, + event->xexpose.window, + event->xexpose.x, event->xexpose.y, + event->xexpose.width, event->xexpose.height, + False); #endif expose_frame (f, event->xexpose.x, event->xexpose.y, event->xexpose.width, event->xexpose.height);