diff options
| author | Richard M. Stallman | 1999-09-11 01:15:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-09-11 01:15:25 +0000 |
| commit | e1f6572f2a8129f39728d152aa0258bc7bd6af3d (patch) | |
| tree | 91a48408d631e29e03c51eaa694e1f0511318aa2 | |
| parent | 0aee588ddc19a0bbaa3ce094986b4f6a2706a243 (diff) | |
| download | emacs-e1f6572f2a8129f39728d152aa0258bc7bd6af3d.tar.gz emacs-e1f6572f2a8129f39728d152aa0258bc7bd6af3d.zip | |
(XTread_socket): In XSetInputFocus, use RevertToParent,
not RevertToPointerRoot.
(XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
Fix the code to clear around the scroll bar.
| -rw-r--r-- | src/xterm.c | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/src/xterm.c b/src/xterm.c index 727bbdcdcf7..793e0098879 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -8004,17 +8004,20 @@ XTset_vertical_scroll_bar (w, portion, whole, position) | |||
| 8004 | 8004 | ||
| 8005 | #else /* not USE_TOOLKIT_SCROLL_BARS */ | 8005 | #else /* not USE_TOOLKIT_SCROLL_BARS */ |
| 8006 | 8006 | ||
| 8007 | /* Clear areas not covered by the scroll bar. This makes sure a | 8007 | if (VERTICAL_SCROLL_BAR_WIDTH_TRIM) |
| 8008 | previous mode line display is cleared after C-x 2 C-x 1, for | 8008 | { |
| 8009 | example. Non-toolkit scroll bars are as wide as the area | 8009 | /* Clear areas not covered by the scroll bar. This makes sure a |
| 8010 | reserved for scroll bars - trim at both sides. */ | 8010 | previous mode line display is cleared after C-x 2 C-x 1, for |
| 8011 | XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), | 8011 | example. Non-toolkit scroll bars are as wide as the area |
| 8012 | left, top, VERTICAL_SCROLL_BAR_WIDTH_TRIM, | 8012 | reserved for scroll bars - trim at both sides. */ |
| 8013 | height, False); | 8013 | XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), |
| 8014 | XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), | 8014 | left, top, VERTICAL_SCROLL_BAR_WIDTH_TRIM, |
| 8015 | left + width - VERTICAL_SCROLL_BAR_WIDTH_TRIM, | 8015 | height, False); |
| 8016 | top, VERTICAL_SCROLL_BAR_WIDTH_TRIM, | 8016 | XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), |
| 8017 | height, False); | 8017 | left + width - VERTICAL_SCROLL_BAR_WIDTH_TRIM, |
| 8018 | top, VERTICAL_SCROLL_BAR_WIDTH_TRIM, | ||
| 8019 | height, False); | ||
| 8020 | } | ||
| 8018 | 8021 | ||
| 8019 | /* Move/size the scroll bar window. */ | 8022 | /* Move/size the scroll bar window. */ |
| 8020 | if (mask) | 8023 | if (mask) |
| @@ -8736,7 +8739,9 @@ XTread_socket (sd, bufp, numchars, expected) | |||
| 8736 | iconified by a window manager such as GWM. */ | 8739 | iconified by a window manager such as GWM. */ |
| 8737 | int count = x_catch_errors (d); | 8740 | int count = x_catch_errors (d); |
| 8738 | XSetInputFocus (d, event.xclient.window, | 8741 | XSetInputFocus (d, event.xclient.window, |
| 8739 | RevertToPointerRoot, | 8742 | /* The ICCCM says this is |
| 8743 | the only valid choice. */ | ||
| 8744 | RevertToParent, | ||
| 8740 | event.xclient.data.l[1]); | 8745 | event.xclient.data.l[1]); |
| 8741 | /* This is needed to detect the error | 8746 | /* This is needed to detect the error |
| 8742 | if there is an error. */ | 8747 | if there is an error. */ |