diff options
| author | Karoly Lorentey | 2007-04-22 12:12:29 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2007-04-22 12:12:29 +0000 |
| commit | e18c709364b095ea0be8ecabe458ac9a642a252f (patch) | |
| tree | efe814a842f932f387b3947c572bf43a548d17ef /src/xterm.c | |
| parent | 81088e260b086fe28f36964f32b6338210ec6fd8 (diff) | |
| parent | 9f25e707aaad5ed14a9448e9c5d345ff0bdbc5a7 (diff) | |
| download | emacs-e18c709364b095ea0be8ecabe458ac9a642a252f.tar.gz emacs-e18c709364b095ea0be8ecabe458ac9a642a252f.zip | |
Merged from emacs@sv.gnu.org
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-660
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-661
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-662
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-663
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-664
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-665
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-666
Fix read-only prompt problem in isearch
* emacs@sv.gnu.org/emacs--devo--0--patch-667
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-668
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-669
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-670
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-671
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-672
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-673
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-206
Merge from emacs--devo--0
* emacs@sv.gnu.org/gnus--rel--5.10--patch-207
Merge from emacs--devo--0
* emacs@sv.gnu.org/gnus--rel--5.10--patch-208
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-600
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/xterm.c b/src/xterm.c index 5fb04d8103e..6a574533a2c 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -5292,7 +5292,7 @@ x_scroll_bar_expose (bar, event) | |||
| 5292 | 5292 | ||
| 5293 | x_scroll_bar_set_handle (bar, XINT (bar->start), XINT (bar->end), 1); | 5293 | x_scroll_bar_set_handle (bar, XINT (bar->start), XINT (bar->end), 1); |
| 5294 | 5294 | ||
| 5295 | /* Switch to scroll bar foreground color. */ | 5295 | /* Switch to scroll bar foreground color. */ |
| 5296 | if (f->output_data.x->scroll_bar_foreground_pixel != -1) | 5296 | if (f->output_data.x->scroll_bar_foreground_pixel != -1) |
| 5297 | XSetForeground (FRAME_X_DISPLAY (f), gc, | 5297 | XSetForeground (FRAME_X_DISPLAY (f), gc, |
| 5298 | f->output_data.x->scroll_bar_foreground_pixel); | 5298 | f->output_data.x->scroll_bar_foreground_pixel); |
| @@ -6772,15 +6772,16 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) | |||
| 6772 | int y = event.xbutton.y; | 6772 | int y = event.xbutton.y; |
| 6773 | 6773 | ||
| 6774 | window = window_from_coordinates (f, x, y, 0, 0, 0, 1); | 6774 | window = window_from_coordinates (f, x, y, 0, 0, 0, 1); |
| 6775 | if (EQ (window, f->tool_bar_window)) | 6775 | tool_bar_p = EQ (window, f->tool_bar_window); |
| 6776 | |||
| 6777 | if (tool_bar_p && event.xbutton.button < 4) | ||
| 6776 | { | 6778 | { |
| 6777 | if (event.xbutton.type == ButtonPress) | 6779 | if (event.xbutton.type == ButtonPress) |
| 6778 | handle_tool_bar_click (f, x, y, 1, 0); | 6780 | handle_tool_bar_click (f, x, y, 1, 0); |
| 6779 | else | 6781 | else |
| 6780 | handle_tool_bar_click (f, x, y, 0, | 6782 | handle_tool_bar_click (f, x, y, 0, |
| 6781 | x_x_to_emacs_modifiers (dpyinfo, | 6783 | x_x_to_emacs_modifiers (dpyinfo, |
| 6782 | event.xbutton.state)); | 6784 | event.xbutton.state)); |
| 6783 | tool_bar_p = 1; | ||
| 6784 | } | 6785 | } |
| 6785 | } | 6786 | } |
| 6786 | 6787 | ||