aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorJan Djärv2009-11-06 08:30:43 +0000
committerJan Djärv2009-11-06 08:30:43 +0000
commite511451fd3efe787c5be5873376b305140e098ad (patch)
tree1847f55050c7ad0eab95dff5f3711ccee2e261fb /src/xterm.c
parent0b7f397ca754d0fca96b9778329ec5206f445205 (diff)
downloademacs-e511451fd3efe787c5be5873376b305140e098ad.tar.gz
emacs-e511451fd3efe787c5be5873376b305140e098ad.zip
Fix bug #4870, issues 3 and 4.
* gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870). * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870). * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for ButtonPressRelease and MotionNotify (bug#4870).
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 1ba367c9989..545f3a5254d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6688,6 +6688,10 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6688 clear_mouse_face (dpyinfo); 6688 clear_mouse_face (dpyinfo);
6689 } 6689 }
6690 6690
6691#ifdef USE_GTK
6692 if (f && xg_event_is_for_scrollbar (f, &event))
6693 f = 0;
6694#endif
6691 if (f) 6695 if (f)
6692 { 6696 {
6693 6697
@@ -6824,6 +6828,10 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6824 else 6828 else
6825 f = x_window_to_frame (dpyinfo, event.xbutton.window); 6829 f = x_window_to_frame (dpyinfo, event.xbutton.window);
6826 6830
6831#ifdef USE_GTK
6832 if (f && xg_event_is_for_scrollbar (f, &event))
6833 f = 0;
6834#endif
6827 if (f) 6835 if (f)
6828 { 6836 {
6829 /* Is this in the tool-bar? */ 6837 /* Is this in the tool-bar? */