aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-18 18:15:06 +0000
committerRichard M. Stallman1994-07-18 18:15:06 +0000
commit847e150a1858ab6cab44779c1ea60e2236c8bbd0 (patch)
tree6fd5b774e8381d2202f4defebe0bf748a09b6e94 /src/xterm.c
parent11079525c071f9a6f5f3b24e3f3119205c249d51 (diff)
downloademacs-847e150a1858ab6cab44779c1ea60e2236c8bbd0.tar.gz
emacs-847e150a1858ab6cab44779c1ea60e2236c8bbd0.zip
(note_mouse_movement): Use proper data type for window
args to XQueryPointer. (x_scroll_bar_note_movement): Likewise.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 56c37ae1325..c1ed1b230e8 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2098,9 +2098,10 @@ note_mouse_movement (frame, event)
2098 /* Ask for another mouse motion event. */ 2098 /* Ask for another mouse motion event. */
2099 { 2099 {
2100 int dummy; 2100 int dummy;
2101 Window dummy_window;
2101 2102
2102 XQueryPointer (event->display, FRAME_X_WINDOW (frame), 2103 XQueryPointer (event->display, FRAME_X_WINDOW (frame),
2103 (Window *) &dummy, (Window *) &dummy, 2104 &dummy_window, &dummy_window,
2104 &dummy, &dummy, &dummy, &dummy, 2105 &dummy, &dummy, &dummy, &dummy,
2105 (unsigned int *) &dummy); 2106 (unsigned int *) &dummy);
2106 } 2107 }
@@ -2120,9 +2121,10 @@ note_mouse_movement (frame, event)
2120 /* Ask for another mouse motion event. */ 2121 /* Ask for another mouse motion event. */
2121 { 2122 {
2122 int dummy; 2123 int dummy;
2124 Window dummy_window;
2123 2125
2124 XQueryPointer (event->display, FRAME_X_WINDOW (frame), 2126 XQueryPointer (event->display, FRAME_X_WINDOW (frame),
2125 (Window *) &dummy, (Window *) &dummy, 2127 &dummy_window, &dummy_window,
2126 &dummy, &dummy, &dummy, &dummy, 2128 &dummy, &dummy, &dummy, &dummy,
2127 (unsigned int *) &dummy); 2129 (unsigned int *) &dummy);
2128 } 2130 }
@@ -2133,9 +2135,10 @@ note_mouse_movement (frame, event)
2133 event the next time the mouse moves and we can see if it's 2135 event the next time the mouse moves and we can see if it's
2134 *still* on the same glyph. */ 2136 *still* on the same glyph. */
2135 int dummy; 2137 int dummy;
2138 Window dummy_window;
2136 2139
2137 XQueryPointer (event->display, FRAME_X_WINDOW (frame), 2140 XQueryPointer (event->display, FRAME_X_WINDOW (frame),
2138 (Window *) &dummy, (Window *) &dummy, 2141 &dummy_window, &dummy_window,
2139 &dummy, &dummy, &dummy, &dummy, 2142 &dummy, &dummy, &dummy, &dummy,
2140 (unsigned int *) &dummy); 2143 (unsigned int *) &dummy);
2141 } 2144 }
@@ -3190,9 +3193,10 @@ x_scroll_bar_note_movement (bar, event)
3190 moves and we can see *still* on the same position. */ 3193 moves and we can see *still* on the same position. */
3191 { 3194 {
3192 int dummy; 3195 int dummy;
3196 Window dummy_window;
3193 3197
3194 XQueryPointer (event->xmotion.display, event->xmotion.window, 3198 XQueryPointer (event->xmotion.display, event->xmotion.window,
3195 (Window *) &dummy, (Window *) &dummy, 3199 &dummy_window, &dummy_window,
3196 &dummy, &dummy, &dummy, &dummy, 3200 &dummy, &dummy, &dummy, &dummy,
3197 (unsigned int *) &dummy); 3201 (unsigned int *) &dummy);
3198 } 3202 }