Mercurial > emacs
diff src/xterm.c @ 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 | e5a68f18fcb9 |
children | 2a69b973fae2 aaccdab0ee26 |
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