From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ralf Fassel Newsgroups: gmane.emacs.bugs Subject: Re: [jonathan.the-seng1@etud.univ-ubs.fr: bug emacs] Date: Wed, 27 Mar 2002 09:50:53 +0100 Organization: Akustik Technologie Goettingen Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <15521.34797.986082.722896@jupiter.akutech-local.de> 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> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1017220385 1424 127.0.0.1 (27 Mar 2002 09:13:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 27 Mar 2002 09:13:05 +0000 (UTC) Cc: gnu-emacs-bug@moderators.isc.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16q9UO-0000Mr-00 for ; Wed, 27 Mar 2002 10:13:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16q9UM-0005Ni-00; Wed, 27 Mar 2002 04:13:02 -0500 Original-Received: from chx400.switch.ch ([130.59.10.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16q995-0004Vy-00 for ; Wed, 27 Mar 2002 03:51:03 -0500 Original-Received: from mail.t-intra.de ([62.156.146.210]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 16q994-0006YY-00 for gnu-emacs-bug@moderators.isc.org; Wed, 27 Mar 2002 09:51:02 +0100 Original-Received: from jupiter.akutech-local.de ([217.226.211.236]) by mail.t-intra.de with Microsoft SMTPSVC(5.5.1877.507.50); Wed, 27 Mar 2002 09:50:55 +0100 Original-Received: (from ralf@localhost) by jupiter.akutech-local.de (8.11.1/8.11.1) id g2R8osT4669699; Wed, 27 Mar 2002 09:50:54 +0100 (MET) Original-To: rms@gnu.org In-Reply-To: <200203262318.g2QNICo08202@aztec.santafe.edu> Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.5 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:222 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:222 * Richard Stallman | Other programs seem to issue a global grab while posting the menu, so | the keyboard shortcuts don't reach the window manager, and no Desktop | switching takes place until the menu is unposted. | | It might be good for Emacs to do this--do you know how? A quick grep for `grab' in the emacs source tree points to: *** 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; Diff finished at Wed Mar 27 09:45:38 But there seems to be more work necessary, as the patch above only queues the keys, so that they are processed when the menu is released. I would expect them to be flushed in some way. Someone more with more knowledge about X11 should have a look at how this is usually done. R'