From c791c18e2364d4cabb2ebd317c963541a4c3bd5a Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Thu, 1 Aug 2013 09:28:24 +0400 Subject: [PATCH] * xterm.c (last_mouse_press_frame): Remove the leftover which is not really used any more. (handle_one_xevent, syms_of_xterm): Adjust users. --- src/ChangeLog | 6 ++++++ src/xterm.c | 10 ---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 76ef664ccd0..40a1d22887e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2013-08-01 Dmitry Antipov + + * xterm.c (last_mouse_press_frame): Remove the + leftover which is not really used any more. + (handle_one_xevent, syms_of_xterm): Adjust users. + 2013-07-31 Dmitry Antipov Drop unnecessary functions that deals with frame pixel size. diff --git a/src/xterm.c b/src/xterm.c index a2306935e4e..9f4261f025e 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -213,7 +213,6 @@ static unsigned long ignore_next_mouse_click_timeout; static XRectangle last_mouse_glyph; static FRAME_PTR last_mouse_glyph_frame; -static Lisp_Object last_mouse_press_frame; /* The scroll bar in which the last X motion event occurred. @@ -6975,14 +6974,8 @@ handle_one_xevent (struct x_display_info *dpyinfo, XEvent *eventptr, && event.xbutton.same_screen) { SET_SAVED_BUTTON_EVENT; - XSETFRAME (last_mouse_press_frame, f); *finish = X_EVENT_DROP; } - else if (event.type == ButtonPress) - { - last_mouse_press_frame = Qnil; - goto OTHER; - } else goto OTHER; #endif /* USE_X_TOOLKIT || USE_GTK */ @@ -10728,9 +10721,6 @@ syms_of_xterm (void) DEFSYM (Qvendor_specific_keysyms, "vendor-specific-keysyms"); DEFSYM (Qlatin_1, "latin-1"); - staticpro (&last_mouse_press_frame); - last_mouse_press_frame = Qnil; - #ifdef USE_GTK xg_default_icon_file = build_pure_c_string ("icons/hicolor/scalable/apps/emacs.svg"); staticpro (&xg_default_icon_file); -- 2.39.2