summaryrefslogtreecommitdiff
path: root/atari/browser_win.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-09-09 22:18:49 +0000
committerOle Loots <ole@monochrom.net>2011-09-09 22:18:49 +0000
commitcbeffd4c5f4ac2ecbb2cfc97a705441a20ec8f23 (patch)
treeff42047c0a624fd83d2463b565da490162b9e996 /atari/browser_win.c
parent6cde3888afdf128bf790eef8fc7891d0e5c41d03 (diff)
downloadnetsurf-cbeffd4c5f4ac2ecbb2cfc97a705441a20ec8f23.tar.gz
netsurf-cbeffd4c5f4ac2ecbb2cfc97a705441a20ec8f23.tar.bz2
Keep Mouse tracking limited to input_window.
svn path=/trunk/netsurf/; revision=12783
Diffstat (limited to 'atari/browser_win.c')
-rwxr-xr-xatari/browser_win.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/atari/browser_win.c b/atari/browser_win.c
index 572e3be5c..427ddedad 100755
--- a/atari/browser_win.c
+++ b/atari/browser_win.c
@@ -105,7 +105,7 @@ static void __CDECL evnt_window_arrowed( WINDOW *win, short buff[8], void *data
}
/*
- this gets called at end of gui poll to track the mouse state and
+ track the mouse state and
finally checks for released buttons.
*/
static void window_track_mouse_state( LGRECT * bwrect, bool within, short mx, short my, short mbut, short mkstate ){
@@ -150,7 +150,6 @@ static void window_track_mouse_state( LGRECT * bwrect, bool within, short mx, sh
if( !(mbut & i) ) {
if( mouse_hold_start[i-1] > 0 ) {
mouse_hold_start[i-1] = 0;
- /* TODO: not just use the input window browser, find the right one by component! */
if( i==1 ) {
LOG(("Drag for %d ended", i));
bmstate &= ~( BROWSER_MOUSE_HOLDING_1 | BROWSER_MOUSE_DRAG_1 ) ;
@@ -192,6 +191,10 @@ static void __CDECL evnt_window_m1( WINDOW * win, short buff[8], void * data)
if( gw == NULL)
return;
+ if( gw != input_window ){
+ return;
+ }
+
graf_mkstate(&mx, &my, &mbut, &mkstate);
browser_get_rect( gw, BR_CONTENT, &bwbox );