# HG changeset patch # User Jan Dj¸«£rv # Date 1187337310 0 # Node ID 15f0ab37e5156dc008e87b21f0dde81d5493a64c # Parent a86fcb95bff276736897eef46b238a847eaadfdc (handle_one_xevent): Remove check that mouse click is in active frame. diff -r a86fcb95bff2 -r 15f0ab37e515 src/xterm.c --- 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