aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-05-22 20:57:31 +0000
committerJim Blandy1993-05-22 20:57:31 +0000
commit5116f055a58d5ed67220b27e17bb782b69c43a1e (patch)
tree33149d25cf94ea295bfc43938e6d5877df54495f /src
parente74865eeac7b7b0a190ead5908adc91eb5111ad7 (diff)
downloademacs-5116f055a58d5ed67220b27e17bb782b69c43a1e.tar.gz
emacs-5116f055a58d5ed67220b27e17bb782b69c43a1e.zip
* xterm.c (x_scroll_bar_handle_click): Never grab the scroll bar;
that feature requires more support to work correctly. Update copyright years.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index a6b7fa4c07f..0e57e96d671 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1,5 +1,5 @@
1/* X Communication module for terminals which understand the X protocol. 1/* X Communication module for terminals which understand the X protocol.
2 Copyright (C) 1989, 1992, 1993 Free Software Foundation, Inc. 2 Copyright (C) 1989, 1993 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -2297,7 +2297,8 @@ x_scroll_bar_handle_click (bar, event, emacs_event)
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 2299 /* Just because the user has clicked on the handle doesn't mean
2300 they want to drag it. */ 2300 they want to drag it. Lisp code needs to be able to decide
2301 whether or not we're dragging. */
2301#if 0 2302#if 0
2302 /* If the user has just clicked on the handle, record where they're 2303 /* If the user has just clicked on the handle, record where they're
2303 holding it. */ 2304 holding it. */
@@ -2317,12 +2318,17 @@ x_scroll_bar_handle_click (bar, event, emacs_event)
2317 bar->dragging = Qnil; 2318 bar->dragging = Qnil;
2318 } 2319 }
2319 2320
2321 /* Same deal here as the other #if 0. */
2322#if 0
2320 /* Clicks on the handle are always reported as occuring at the top of 2323 /* Clicks on the handle are always reported as occuring at the top of
2321 the handle. */ 2324 the handle. */
2322 if (emacs_event->part == scroll_bar_handle) 2325 if (emacs_event->part == scroll_bar_handle)
2323 emacs_event->x = bar->start; 2326 emacs_event->x = bar->start;
2324 else 2327 else
2325 XSET (emacs_event->x, Lisp_Int, y); 2328 XSET (emacs_event->x, Lisp_Int, y);
2329#else
2330 XSET (emacs_event->x, Lisp_Int, y);
2331#endif
2326 2332
2327 XSET (emacs_event->y, Lisp_Int, top_range); 2333 XSET (emacs_event->y, Lisp_Int, top_range);
2328 } 2334 }