From: Jan Djärv Date: Fri, 17 Aug 2007 07:55:25 +0000 (+0000) Subject: (handle_one_xevent): Remove check that mouse click is in X-Git-Tag: emacs-pretest-23.0.90~11474 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e8953ebf985f5a1e8033c56f07f0a47ab3beb089;p=emacs.git (handle_one_xevent): Remove check that mouse click is in active frame. --- diff --git a/src/ChangeLog b/src/ChangeLog index 7909260228e..86a6ad61d2d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-08-17 Jan Dj,Ad(Brv + + * xterm.c (handle_one_xevent): Remove check that mouse click is in + active frame. + 2007-08-16 Richard Stallman * eval.c (Fcommandp): Add parens to clarify. diff --git a/src/xterm.c b/src/xterm.c index a5bb506f035..fdff9b4f02e 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6853,27 +6853,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