From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#17609: 24.4.50; trunk r117096: disappearing cursor in X Date: Tue, 03 Jun 2014 16:40:22 +0400 Message-ID: <538DC236.4000001@yandex.ru> References: <87lhtnnxpy.fsf@nb-jtatarik2.xing.hh> <5384D0C7.2090808@yandex.ru> <87ppiz7zav.fsf@nb-jtatarik2.xing.hh> <53856360.5030401@yandex.ru> <87ppirqvlb.fsf@nb-jtatarik2.xing.hh> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020307040906090103080906" X-Trace: ger.gmane.org 1401799296 22949 80.91.229.3 (3 Jun 2014 12:41:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2014 12:41:36 +0000 (UTC) Cc: 17609@debbugs.gnu.org To: Jan Tatarik Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 03 14:41:29 2014 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 1Wro1v-0004xO-40 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jun 2014 14:41:27 +0200 Original-Received: from localhost ([::1]:52582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wro1u-0003rF-O9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jun 2014 08:41:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wro1e-0003Yx-Up for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 08:41:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wro1X-0007jR-Mi for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 08:41:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wro1X-0007jC-Hf for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 08:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wro1W-0001yt-Sl for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 08:41:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Jun 2014 12:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17609 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17609-submit@debbugs.gnu.org id=B17609.14017992417552 (code B ref 17609); Tue, 03 Jun 2014 12:41:02 +0000 Original-Received: (at 17609) by debbugs.gnu.org; 3 Jun 2014 12:40:41 +0000 Original-Received: from localhost ([127.0.0.1]:41790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wro17-0001xa-6V for submit@debbugs.gnu.org; Tue, 03 Jun 2014 08:40:40 -0400 Original-Received: from forward8l.mail.yandex.net ([84.201.143.141]:59546) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wro10-0001xA-6u for 17609@debbugs.gnu.org; Tue, 03 Jun 2014 08:40:31 -0400 Original-Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [37.140.190.29]) by forward8l.mail.yandex.net (Yandex) with ESMTP id 76BBD1A411D6; Tue, 3 Jun 2014 16:40:23 +0400 (MSK) Original-Received: from smtp4o.mail.yandex.net (localhost [127.0.0.1]) by smtp4o.mail.yandex.net (Yandex) with ESMTP id 155642321B2C; Tue, 3 Jun 2014 16:40:22 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 8IfrQZsSFb-eMH4f8i6; Tue, 3 Jun 2014 16:40:22 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 9d7c07f5-9f7e-4fa9-bb49-82f721364965 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1401799222; bh=TUPmEB1JDThikN3LXoZuPZoZviSWYmJKzHlzaU9ow2M=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=XOoa9pKHzq3LKKfch0zyInwwz3NStJQ2RECGuCf7PwsYkG8wfdBW+XXBoG9VcBxiJ PmMjx/S19rVTM6rxOyWYP/XmdyzmEj6ICQ4607v4Y2d6E4xoWvMA9luSjjlGYBxFXV J1DmiZcMMLks2mE4FyWExMGrjAmFEhfvJqBtmQk4= Authentication-Results: smtp4o.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <87ppirqvlb.fsf@nb-jtatarik2.xing.hh> 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:89939 Archived-At: This is a multi-part message in MIME format. --------------020307040906090103080906 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 06/02/2014 03:47 PM, Jan Tatarik wrote: > There's still an issue. Pop-up notifications (notifications.el) > triggered by emacs make the cursor disappear. The cursor remains hidden > until emacs gets focus again. I'm not familiar with this code and don't know how the notifications popup window is created. Anyway, please try this tiny patch. Dmitry --------------020307040906090103080906 Content-Type: text/x-patch; name="bug17609_2.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bug17609_2.patch" === modified file 'src/menu.c' --- src/menu.c 2014-06-02 18:01:21 +0000 +++ src/menu.c 2014-06-03 12:29:28 +0000 @@ -1558,6 +1558,12 @@ string contents, because Fredisplay may GC and relocate them. */ Fredisplay (Qt); +#ifdef HAVE_X_WINDOWS + /* Don't confuse user with invisible cursor. */ + if (FRAME_X_P (f) && f->pointer_invisible) + FRAME_DISPLAY_INFO (f)->toggle_visible_pointer (f, 0); +#endif + #if defined USE_X_TOOLKIT || defined USE_GTK if (FRAME_WINDOW_P (f)) return xw_popup_dialog (f, header, contents); --------------020307040906090103080906--