[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [address@hidden: bug emacs]
From: |
Ralf Fassel |
Subject: |
Re: [address@hidden: bug emacs] |
Date: |
Wed, 27 Mar 2002 09:50:53 +0100 |
* 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'
- [address@hidden: bug emacs], Richard Stallman, 2002/03/24
- Re: [address@hidden: bug emacs], Richard Stallman, 2002/03/26
- Re: [address@hidden: bug emacs], Stefan Monnier, 2002/03/26
- Re: [address@hidden: bug emacs], Richard Stallman, 2002/03/27
- Re: [address@hidden: bug emacs], Ralf Fassel, 2002/03/28
- Re: [address@hidden: bug emacs], Stefan Monnier, 2002/03/28