diff options
| author | Dmitry Antipov | 2013-10-10 14:06:17 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-10-10 14:06:17 +0400 |
| commit | 6bbe6da82dd61d050a773602f272dc4750291302 (patch) | |
| tree | 533463c1ba5b80dbf2acac602f8c7a13fe18d666 /src/menu.c | |
| parent | 6c8413fce16569e3883b48e64cd5da2a37a209d6 (diff) | |
| download | emacs-6bbe6da82dd61d050a773602f272dc4750291302.tar.gz emacs-6bbe6da82dd61d050a773602f272dc4750291302.zip | |
* keyboard.c (last_event_timestamp): Remove. For X selection and
GTK popup menus, it may be obtained from per-frame X display info.
(kbd_buffer_store_event_hold, kbd_buffer_get_event)
(process_special_events): Adjust users.
* keyboard.h (last_event_timestamp): Remove declaration.
* xmenu.c (xmenu_show, create_and_show_popup_menu): Lost last arg.
Use FRAME_DISPLAY_INFO (f)->last_user_time for gtk_menu_popup.
* menu.h (xmenu_show): Adjust prototype.
* menu.c (Fx_popup_menu): Adjust user.
* xselect.c (x_own_selection, x_get_foreign_selection)
(Fx_disown_selection_internal): Use dpyinfo->last_user_time.
Diffstat (limited to 'src/menu.c')
| -rw-r--r-- | src/menu.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/menu.c b/src/menu.c index 9e135b56ce5..d87d495f96b 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -1440,14 +1440,9 @@ no quit occurs and `x-popup-menu' returns nil. */) | |||
| 1440 | else | 1440 | else |
| 1441 | #endif | 1441 | #endif |
| 1442 | #if (defined (HAVE_X_WINDOWS) || defined (MSDOS)) | 1442 | #if (defined (HAVE_X_WINDOWS) || defined (MSDOS)) |
| 1443 | /* Assume last_event_timestamp is the timestamp of the button event. | ||
| 1444 | Is this assumption ever violated? We can't use the timestamp | ||
| 1445 | stored within POSITION because there the top bits from the actual | ||
| 1446 | timestamp may be truncated away (Bug#4930). */ | ||
| 1447 | if (FRAME_X_P (f) || FRAME_MSDOS_P (f)) | 1443 | if (FRAME_X_P (f) || FRAME_MSDOS_P (f)) |
| 1448 | selection = xmenu_show (f, xpos, ypos, for_click, | 1444 | selection = xmenu_show (f, xpos, ypos, for_click, |
| 1449 | keymaps, title, &error_name, | 1445 | keymaps, title, &error_name); |
| 1450 | last_event_timestamp); | ||
| 1451 | else | 1446 | else |
| 1452 | #endif | 1447 | #endif |
| 1453 | if (FRAME_TERMCAP_P (f)) | 1448 | if (FRAME_TERMCAP_P (f)) |