diff options
| author | Jan Djärv <jan.h.d@swipnet.se> | 2007-08-17 07:55:25 +0000 | 
|---|---|---|
| committer | Jan Djärv <jan.h.d@swipnet.se> | 2007-08-17 07:55:25 +0000 | 
| commit | e8953ebf985f5a1e8033c56f07f0a47ab3beb089 (patch) | |
| tree | eeab9f09c1129bf8b5691bc4c27a96cc84fd50ce | |
| parent | 5757dd514dd8b797e57c01fb0710c59a4952395f (diff) | |
| download | emacs-e8953ebf985f5a1e8033c56f07f0a47ab3beb089.tar.gz | |
(handle_one_xevent): Remove check that mouse click is in
active frame.
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | 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  <jan.h.d@swipnet.se> + +	* xterm.c (handle_one_xevent): Remove check that mouse click is in +	active frame. +  2007-08-16  Richard Stallman  <rms@gnu.org>  	* 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 | 
