comparison 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
comparison
equal deleted inserted replaced
82426:a86fcb95bff2 82427:15f0ab37e515
6851 event.xbutton.state)); 6851 event.xbutton.state));
6852 } 6852 }
6853 } 6853 }
6854 6854
6855 if (!tool_bar_p) 6855 if (!tool_bar_p)
6856 if (!dpyinfo->x_focus_frame 6856 #if defined (USE_X_TOOLKIT) || defined (USE_GTK)
6857 || f == dpyinfo->x_focus_frame) 6857 if (! popup_activated ())
6858 #endif
6858 { 6859 {
6859 #if defined (USE_X_TOOLKIT) || defined (USE_GTK) 6860 if (ignore_next_mouse_click_timeout)
6860 if (! popup_activated ()) 6861 {
6861 #endif 6862 if (event.type == ButtonPress
6862 { 6863 && (int)(event.xbutton.time - ignore_next_mouse_click_timeout) > 0)
6863 if (ignore_next_mouse_click_timeout) 6864 {
6864 { 6865 ignore_next_mouse_click_timeout = 0;
6865 if (event.type == ButtonPress 6866 construct_mouse_click (&inev.ie, &event.xbutton, f);
6866 && (int)(event.xbutton.time - ignore_next_mouse_click_timeout) > 0) 6867 }
6867 { 6868 if (event.type == ButtonRelease)
6868 ignore_next_mouse_click_timeout = 0; 6869 ignore_next_mouse_click_timeout = 0;
6869 construct_mouse_click (&inev.ie, &event.xbutton, f); 6870 }
6870 } 6871 else
6871 if (event.type == ButtonRelease) 6872 construct_mouse_click (&inev.ie, &event.xbutton, f);
6872 ignore_next_mouse_click_timeout = 0;
6873 }
6874 else
6875 construct_mouse_click (&inev.ie, &event.xbutton, f);
6876 }
6877 } 6873 }
6878 } 6874 }
6879 else 6875 else
6880 { 6876 {
6881 struct scroll_bar *bar 6877 struct scroll_bar *bar