diff options
| author | Po Lu | 2022-01-22 15:01:28 +0800 |
|---|---|---|
| committer | Po Lu | 2022-01-22 15:02:12 +0800 |
| commit | b63baeafd24c506863da280e03efdcf0d1d8d0eb (patch) | |
| tree | 95c77e15cdcbabaec592cc0e0124b393666de017 /src | |
| parent | 643985e8b6d5277a83b4d8657bbdb8452591ce83 (diff) | |
| download | emacs-b63baeafd24c506863da280e03efdcf0d1d8d0eb.tar.gz emacs-b63baeafd24c506863da280e03efdcf0d1d8d0eb.zip | |
Get rid of some unnecessary code in handle_one_xevent
* src/xterm.c (handle_one_xevent): Stop mutating event->xkey.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index 81baeddbcaa..36e0045d2ed 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -9276,7 +9276,8 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 9276 | int modifiers; | 9276 | int modifiers; |
| 9277 | Lisp_Object coding_system = Qlatin_1; | 9277 | Lisp_Object coding_system = Qlatin_1; |
| 9278 | Lisp_Object c; | 9278 | Lisp_Object c; |
| 9279 | /* Event will be modified. */ | 9279 | /* `xkey' will be modified, but it's not important to modify |
| 9280 | `event' itself. */ | ||
| 9280 | XKeyEvent xkey = event->xkey; | 9281 | XKeyEvent xkey = event->xkey; |
| 9281 | 9282 | ||
| 9282 | #ifdef USE_GTK | 9283 | #ifdef USE_GTK |
| @@ -9538,8 +9539,6 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 9538 | if (keysym == NoSymbol) | 9539 | if (keysym == NoSymbol) |
| 9539 | break; | 9540 | break; |
| 9540 | } | 9541 | } |
| 9541 | /* FIXME: check side effects and remove this. */ | ||
| 9542 | ((XEvent *) event)->xkey = xkey; | ||
| 9543 | } | 9542 | } |
| 9544 | done_keysym: | 9543 | done_keysym: |
| 9545 | #ifdef HAVE_X_I18N | 9544 | #ifdef HAVE_X_I18N |