diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index d558f394b3e..a6b7fa4c07f 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -2295,12 +2295,16 @@ x_scroll_bar_handle_click (bar, event, emacs_event) | |||
| 2295 | emacs_event->part = scroll_bar_handle; | 2295 | emacs_event->part = scroll_bar_handle; |
| 2296 | else | 2296 | else |
| 2297 | emacs_event->part = scroll_bar_below_handle; | 2297 | emacs_event->part = scroll_bar_below_handle; |
| 2298 | 2298 | ||
| 2299 | /* Just because the user has clicked on the handle doesn't mean | ||
| 2300 | they want to drag it. */ | ||
| 2301 | #if 0 | ||
| 2299 | /* If the user has just clicked on the handle, record where they're | 2302 | /* If the user has just clicked on the handle, record where they're |
| 2300 | holding it. */ | 2303 | holding it. */ |
| 2301 | if (event->type == ButtonPress | 2304 | if (event->type == ButtonPress |
| 2302 | && emacs_event->part == scroll_bar_handle) | 2305 | && emacs_event->part == scroll_bar_handle) |
| 2303 | XSET (bar->dragging, Lisp_Int, y - XINT (bar->start)); | 2306 | XSET (bar->dragging, Lisp_Int, y - XINT (bar->start)); |
| 2307 | #endif | ||
| 2304 | 2308 | ||
| 2305 | /* If the user has released the handle, set it to its final position. */ | 2309 | /* If the user has released the handle, set it to its final position. */ |
| 2306 | if (event->type == ButtonRelease | 2310 | if (event->type == ButtonRelease |