Commit 9ae848fc authored by Paul Eggert's avatar Paul Eggert
Browse files

* xterm.c (x_scroll_bar_to_input_event) [!USE_GTK]:

Remove var that is set but not used.
parent a5a62657
2011-04-01 Paul Eggert <>
* xterm.c (x_scroll_bar_to_input_event) [!USE_GTK]:
Remove var that is set but not used.
* xfaces.c (realize_named_face): Remove vars that are set but not used.
(map_tty_color) [!defined MSDOS]: Likewise.
......@@ -4240,14 +4240,12 @@ x_scroll_bar_to_input_event (XEvent *event, struct input_event *ievent)
XClientMessageEvent *ev = (XClientMessageEvent *) event;
Lisp_Object window;
struct frame *f;
struct window *w;
w = scroll_bar_windows[ev->data.l[0]];
scroll_bar_windows[ev->data.l[0]] = NULL;
XSETWINDOW (window, w);
f = XFRAME (w->frame);
ievent->kind = SCROLL_BAR_CLICK_EVENT;
ievent->frame_or_window = window;
......@@ -4255,7 +4253,8 @@ x_scroll_bar_to_input_event (XEvent *event, struct input_event *ievent)
#ifdef USE_GTK
ievent->timestamp = CurrentTime;
ievent->timestamp = XtLastTimestampProcessed (FRAME_X_DISPLAY (f));
ievent->timestamp =
XtLastTimestampProcessed (FRAME_X_DISPLAY (XFRAME (w->frame)));
ievent->part = ev->data.l[1];
ievent->code = ev->data.l[2];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment