Mercurial > emacs
comparison src/xterm.c @ 15793:fc460a98a7f9
(last_mouse_press_frame): New variable.
(XTread_socket): Store a saved_button_event for ButtonRelease.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 27 Jul 1996 20:30:31 +0000 |
parents | 099dc465c948 |
children | c741a26258ce |
comparison
equal
deleted
inserted
replaced
15792:feeb1f7c1cec | 15793:fc460a98a7f9 |
---|---|
193 tracking is on, and I suspect only negligibly worse when tracking | 193 tracking is on, and I suspect only negligibly worse when tracking |
194 is off. */ | 194 is off. */ |
195 | 195 |
196 /* Where the mouse was last time we reported a mouse event. */ | 196 /* Where the mouse was last time we reported a mouse event. */ |
197 static FRAME_PTR last_mouse_frame; | 197 static FRAME_PTR last_mouse_frame; |
198 static FRAME_PTR last_mouse_press_frame; | |
198 static XRectangle last_mouse_glyph; | 199 static XRectangle last_mouse_glyph; |
199 | 200 |
200 /* The scroll bar in which the last X motion event occurred. | 201 /* The scroll bar in which the last X motion event occurred. |
201 | 202 |
202 If the last X motion event occurred in a scroll bar, we set this | 203 If the last X motion event occurred in a scroll bar, we set this |
4044 && event.xbutton.x < f->output_data.x->pixel_width | 4045 && event.xbutton.x < f->output_data.x->pixel_width |
4045 && event.xbutton.y >= 0 | 4046 && event.xbutton.y >= 0 |
4046 && event.xbutton.y < f->output_data.x->menubar_height | 4047 && event.xbutton.y < f->output_data.x->menubar_height |
4047 && event.xbutton.same_screen) | 4048 && event.xbutton.same_screen) |
4048 { | 4049 { |
4050 SET_SAVED_BUTTON_EVENT; | |
4051 last_mouse_press_frame = f; | |
4052 } | |
4053 else if (event.type == ButtonRelease) | |
4054 { | |
4055 if (!f) f = last_mouse_press_frame; | |
4049 SET_SAVED_BUTTON_EVENT; | 4056 SET_SAVED_BUTTON_EVENT; |
4050 } | 4057 } |
4051 else | 4058 else |
4052 goto OTHER; | 4059 goto OTHER; |
4053 #endif /* USE_X_TOOLKIT */ | 4060 #endif /* USE_X_TOOLKIT */ |