changeset 82427:15f0ab37e515

(handle_one_xevent): Remove check that mouse click is in active frame.
author Jan Djärv <jan.h.d@swipnet.se>
date Fri, 17 Aug 2007 07:55:10 +0000
parents a86fcb95bff2
children 8e687f7c8e5a
files src/xterm.c
diffstat 1 files changed, 16 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Aug 17 07:31:52 2007 +0000
+++ b/src/xterm.c	Fri Aug 17 07:55:10 2007 +0000
@@ -6853,27 +6853,23 @@
               }
 
             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 ())
+#endif
                 {
-#if defined (USE_X_TOOLKIT) || defined (USE_GTK)
-                  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