]> git.eshelyaron.com Git - emacs.git/commitdiff
(handle_one_xevent): Remove check that mouse click is in
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 17 Aug 2007 07:52:08 +0000 (07:52 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 17 Aug 2007 07:52:08 +0000 (07:52 +0000)
active frame.

src/ChangeLog
src/xterm.c

index 42e5866f88ca6e3abf7c2d1edaf63c5f74bbca85..89267c92f0a01ecfef49b1555da0a6e8d137842d 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xterm.c (handle_one_xevent): Remove check that mouse click is in
+       active frame.
+
 2007-08-15  Philippe Waroquiers  <philippe.waroquiers@eurocontrol.int>
 
        * term.c (tty_default_color_capabilities): Declare static
index 512fff35f50d47caf64258385a1e93feb1e72a45..6c58cc39fd2e7058870d9a9d7fa406df2b5bb323 100644 (file)
@@ -6751,7 +6751,11 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
           f = last_mouse_frame;
         else
           f = x_window_to_frame (dpyinfo, event.xbutton.window);
-
+        if (event.type == ButtonPress)
+          {
+            static int xxx = 0;
+            fprintf (stderr, "%d, F: %p\n", xxx++, f);
+          }
         if (f)
           {
             /* Is this in the tool-bar?  */
@@ -6777,27 +6781,23 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
               }
 
             if (!tool_bar_p)
-              if (!dpyinfo->x_focus_frame
-                  || f == dpyinfo->x_focus_frame)
-                {
 #if defined (USE_X_TOOLKIT) || defined (USE_GTK)
-                  if (! popup_activated ())
+              if (! popup_activated ())
 #endif
-                   {
-                     if (ignore_next_mouse_click_timeout)
-                       {
-                         if (event.type == ButtonPress
-                             && (int)(event.xbutton.time - ignore_next_mouse_click_timeout) > 0)
-                           {
-                             ignore_next_mouse_click_timeout = 0;
-                             construct_mouse_click (&inev.ie, &event.xbutton, f);
-                           }
-                         if (event.type == ButtonRelease)
-                           ignore_next_mouse_click_timeout = 0;
-                       }
-                     else
-                       construct_mouse_click (&inev.ie, &event.xbutton, f);
-                   }
+                {
+                  if (ignore_next_mouse_click_timeout)
+                    {
+                      if (event.type == ButtonPress
+                          && (int)(event.xbutton.time - ignore_next_mouse_click_timeout) > 0)
+                        {
+                          ignore_next_mouse_click_timeout = 0;
+                          construct_mouse_click (&inev.ie, &event.xbutton, f);
+                        }
+                      if (event.type == ButtonRelease)
+                        ignore_next_mouse_click_timeout = 0;
+                    }
+                  else
+                    construct_mouse_click (&inev.ie, &event.xbutton, f);
                 }
           }
         else