* xterm.c (last_mouse_press_frame): Remove the
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 1 Aug 2013 05:28:24 +0000 (09:28 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Thu, 1 Aug 2013 05:28:24 +0000 (09:28 +0400)
leftover which is not really used any more.
(handle_one_xevent, syms_of_xterm): Adjust users.

src/ChangeLog
src/xterm.c

index 76ef664..40a1d22 100644 (file)
@@ -1,3 +1,9 @@
+2013-08-01  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * 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  <dmantipov@yandex.ru>
 
        Drop unnecessary functions that deals with frame pixel size.
index a230693..9f4261f 100644 (file)
@@ -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);