From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.bugs Subject: bug#4843: creating menus Date: Mon, 02 Nov 2009 09:20:18 +0100 Message-ID: <4AEE9642.7060401@swipnet.se> References: <87hbtdpuo8.fsf@stupidchicken.com> Reply-To: "Jan D." , 4843@emacsbugs.donarmstrong.com 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: ger.gmane.org 1257151658 32447 80.91.229.12 (2 Nov 2009 08:47:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Nov 2009 08:47:38 +0000 (UTC) Cc: 4843@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 02 09:47:30 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N4sZV-0005yo-1g for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Nov 2009 09:47:29 +0100 Original-Received: from localhost ([127.0.0.1]:33198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4sZU-00047w-DI for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Nov 2009 03:47:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4sZQ-00047l-0A for bug-gnu-emacs@gnu.org; Mon, 02 Nov 2009 03:47:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4sZL-000473-5U for bug-gnu-emacs@gnu.org; Mon, 02 Nov 2009 03:47:23 -0500 Original-Received: from [199.232.76.173] (port=48199 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4sZL-000470-0J for bug-gnu-emacs@gnu.org; Mon, 02 Nov 2009 03:47:19 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43333) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N4sZK-00078v-FJ for bug-gnu-emacs@gnu.org; Mon, 02 Nov 2009 03:47:18 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA28lFLV023971; Mon, 2 Nov 2009 00:47:16 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nA28U3Cb021742; Mon, 2 Nov 2009 00:30:03 -0800 Resent-Date: Mon, 2 Nov 2009 00:30:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Jan D." Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 02 Nov 2009 08:30:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4843 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4843-submit@emacsbugs.donarmstrong.com id=B4843.125715002820916 (code B ref 4843); Mon, 02 Nov 2009 08:30:03 +0000 Original-Received: (at 4843) by emacsbugs.donarmstrong.com; 2 Nov 2009 08:20:28 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from proxy1.bredband.net (proxy1.bredband.net [195.54.101.71]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA28KQqo020909 for <4843@emacsbugs.donarmstrong.com>; Mon, 2 Nov 2009 00:20:28 -0800 Original-Received: from iph1.telenor.se (195.54.127.132) by proxy1.bredband.net (7.3.140.3) id 4AD3E1C00080A15A for 4843@emacsbugs.donarmstrong.com; Mon, 2 Nov 2009 09:20:20 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnpaAMMk7kpV4S1uPGdsb2JhbACBT4gGkXMBAQEBN71yhDkE X-IronPort-AV: E=Sophos;i="4.44,665,1249250400"; d="scan'208";a="61492003" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by iph1.telenor.se with ESMTP; 02 Nov 2009 09:20:20 +0100 Original-Received: from [10.225.40.98] (unknown [193.45.43.33]) by coolsville.localdomain (Postfix) with ESMTPSA id D9F007FA07B; Mon, 2 Nov 2009 09:20:19 +0100 (CET) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4 In-Reply-To: <87hbtdpuo8.fsf@stupidchicken.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 02 Nov 2009 03:47:23 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32367 Archived-At: On 2009-11-02 02:44, Chong Yidong wrote: >> It can be because you are now using a newer Gtk+ version. Please use >> report-emacs-bug so we can see that at once instead of having to ask. >> >> If indeed you are using Gtk+, it is due to the introduction of native windows. >> To see if this is the case, start emacs with >> % GDK_NATIVE_WINDOWS=1 emacs >> and try again. > > I don't have any recollection of this problem. Could you elaborate? If > the menus don't work properly unless GDK_NATIVE_WINDOWS=1, maybe we > should set it unconditionally. Native windows is Gtk having internal windows that map to the same X window. This confuses Emacs, mostly when it tries to map X events for windows to frames. I.e. there might not be separate X windows in the menu that is children to the frame X window. See bug #4122. I'd rather not set GDK_NATIVE_WINDOWS as it disables the optimizations that native windows give. It may also be removed in a future Gtk+ release, so it isn't a good solution. It isn't hard to fix emacs 22 as well, but does this bug warrant a new 22 release? Maybe, as distributions like Ubuntu still ships 22 (see the linked Ubuntu bug in #4122). A 23-release soonish is not wrong though :-) Jan D.