From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Tool-bar buttons unresponsive with tooltips on Date: Mon, 24 Oct 2005 08:38:42 +0100 Message-ID: References: <29911216.1129711174895.JavaMail.www@wwinf0202> <4356830F.3000002@swipnet.se> <6752BDE2-0EF5-47FF-BB01-F9050E7A4026@swipnet.se> <87k6g9unq8.fsf_-_@stupidchicken.com> <873bmwutz3.fsf@stupidchicken.com> <435BFD2B.3000705@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130142729 25021 80.91.229.2 (24 Oct 2005 08:32:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2005 08:32:09 +0000 (UTC) Cc: Chong Yidong , Emacs Devel , "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 24 10:31:54 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ETxik-00071S-40 for ged-emacs-devel@m.gmane.org; Mon, 24 Oct 2005 10:30:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETxgV-0002Xg-Pa for ged-emacs-devel@m.gmane.org; Mon, 24 Oct 2005 04:27:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ETwwS-0008I9-Do for emacs-devel@gnu.org; Mon, 24 Oct 2005 03:40:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ETwwO-0008HG-6Q for emacs-devel@gnu.org; Mon, 24 Oct 2005 03:40:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETwwL-0008Fs-IW for emacs-devel@gnu.org; Mon, 24 Oct 2005 03:40:17 -0400 Original-Received: from [194.106.33.237] (helo=outmail.freedom2surf.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ETwwL-00052R-EK for emacs-devel@gnu.org; Mon, 24 Oct 2005 03:40:17 -0400 Original-Received: from wanchan.jasonrumney.net (i-83-67-23-108.freedom2surf.net [83.67.23.108]) by outmail.freedom2surf.net (8.12.10/8.12.10) with ESMTP id j9O7eAch024024; Mon, 24 Oct 2005 08:40:10 +0100 Original-Received: from TONKOTSU-RAMEN (tonkotsu-ramen.jasonrumney.net [10.0.0.28]) by wanchan.jasonrumney.net (Postfix) with ESMTP id EDA3C2D; Mon, 24 Oct 2005 08:40:09 +0100 (BST) Original-To: "Jan D." In-Reply-To: (Jan D.'s message of "Mon, 24 Oct 2005 07:02:07 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) 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:44689 Archived-At: "Jan D." writes: > > The reason is that showing the tip window generates an EnterNotify > event that clears dpyinfo->mouse_face_window (sets to Qnil). Why does it do that? tooltip windows should not affect any window states. > note_mouse_highlight calls note_tool_bar_highlight and that function > sets mouse_face_window again to the tool bar window. Later when > checking if the click is in the tool bar, it is only recognised as a > tool bar click if mouse_face_window is eq to the tool bar window. > > Now, window managers are free to generate EnterNotify whenever they > want and it seems that KDE generates one more than it used to, and > also more than other window managers. This is not a bug however. The EnterNotify may not be a bug, but the way we handle it is. We should test for tip_window and avoid doing certain things, the same way we do for other events.