From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.bugs Subject: Re: [jonathan.the-seng1@etud.univ-ubs.fr: bug emacs] Date: 27 Mar 2002 10:46:41 -0500 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <5lr8m6dndq.fsf@rum.cs.yale.edu> References: <200203241553.g2OFrPA02755@aztec.santafe.edu> <200203251201.g2PC1XV03088@aztec.santafe.edu> <15519.6972.560000.363430@mail.chezmarshall.freeserve.co.uk> <200203262318.g2QNICo08202@aztec.santafe.edu> <15521.34797.986082.722896@jupiter.akutech-local.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1017804985 12319 127.0.0.1 (3 Apr 2002 03:36:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 3 Apr 2002 03:36:25 +0000 (UTC) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16sbZQ-0003Ca-00 for ; Wed, 03 Apr 2002 05:36:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16sbZK-0008VY-00; Tue, 02 Apr 2002 22:36:18 -0500 Original-Received: from dimail.epfl.ch ([128.178.79.31]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16sbWy-0008A0-00 for ; Tue, 02 Apr 2002 22:33:52 -0500 Original-Received: from dinews.epfl.ch (news@disunds1 [128.178.79.23]) by dimail.epfl.ch (8.8.X/EPFL-8.1g) with SMTP id FAA28390 for ; Wed, 3 Apr 2002 05:33:37 +0200 (MET DST) Original-To: gnu-emacs-bug@gnu.org Original-Newsgroups: gnu.emacs.bug Original-Lines: 31 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 X-Original-NNTP-Posting-Host: rum.cs.yale.edu X-Original-Trace: 27 Mar 2002 10:46:41 -0500, rum.cs.yale.edu Original-Path: rum.cs.yale.edu!rum.cs.yale.edu Original-NNTP-Posting-Host: liasun13.epfl.ch X-Original-NNTP-Posting-Host: liasun13.epfl.ch Original-X-Trace: 3 Apr 2002 05:33:35 +0100, liasun13.epfl.ch Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:371 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:371 >>>>> "Ralf" == Ralf Fassel writes: > *** emacs-21.2/lwlib/xlwmenu.c~ Mon Apr 30 16:34:54 2001 > --- emacs-21.2/lwlib/xlwmenu.c Wed Mar 27 09:42:04 2002 > *************** > *** 2121,2127 **** > | PointerMotionHintMask > | ButtonReleaseMask > | ButtonPressMask), > ! GrabModeAsync, GrabModeAsync, None, mw-> menu.cursor_shape, event-> time); > pointer_grabbed = 1; > --- 2121,2127 ---- > | PointerMotionHintMask > | ButtonReleaseMask > | ButtonPressMask), > ! GrabModeAsync, GrabModeSync, None, mw-> menu.cursor_shape, event-> time); > pointer_grabbed = 1; I think this patch only works around the bug. The bug is that the menu does not get unmapped when the main window is unmapped. Grabbing more is bad in case of crashes so I'd rather avoid doing it especially since it doesn't seem to be better from a user perspective (what's the point of preventing the user from sending keyboard commands to his window-manager) ? Stefan