From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Motif menu popups not working in CVS Date: Sun, 05 Jan 2003 13:33:34 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200301041726.h04HQhdw001850@stubby.bodenonline.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1041792176 23885 80.91.224.249 (5 Jan 2003 18:42:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 5 Jan 2003 18:42:56 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18VFjb-0006D7-00 for ; Sun, 05 Jan 2003 19:42:55 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18VFnJ-0007Vn-00 for ; Sun, 05 Jan 2003 19:46:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18VFgL-0002Go-01 for emacs-devel@quimby.gnus.org; Sun, 05 Jan 2003 13:39:33 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18VFfL-0001vW-00 for emacs-devel@gnu.org; Sun, 05 Jan 2003 13:38:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18VFbY-0000rb-00 for emacs-devel@gnu.org; Sun, 05 Jan 2003 13:34:37 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18VFaY-0000Pl-00 for emacs-devel@gnu.org; Sun, 05 Jan 2003 13:33:34 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18VFaY-0008P2-00; Sun, 05 Jan 2003 13:33:34 -0500 Original-To: jan.h.d@swipnet.se In-reply-to: <200301041726.h04HQhdw001850@stubby.bodenonline.com> (jan.h.d@swipnet.se) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10503 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10503 It is some sort of race condition here, it seems that popup_get_selection exits and removes the popup before Motif has had a chance to invoke its callback for the menu item. Lucid menus work OK. That is strange. Where is popup_activated_flag getting cleared in the case that fails? The only events that do get saved are EnterNotify, LeaveNotify, FocusOut, FocusIn and MotionNotify. Losing these is no big deal, since the menu has the pointer and keyboard grabbed anyway. Could you explain that reasoning? I don't see how the conclusion follows. I'm sure the code was added to solve a problem.