From e8953ebf985f5a1e8033c56f07f0a47ab3beb089 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Fri, 17 Aug 2007 07:55:25 +0000 Subject: [PATCH] (handle_one_xevent): Remove check that mouse click is in active frame. --- src/ChangeLog | 5 +++++ src/xterm.c | 34 +++++++++++++++------------------- 2 files changed, 20 insertions(+), 19 deletions(-) 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 -- 2.39.2