summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2010-03-15 19:00:21 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2010-03-15 19:00:21 +0000
commit04769b3f076b00cc8ab5ad3cc0b2924af86acb1b (patch)
tree8c7ab25f54f42eeab7a64382d59fddc3993fea7b
parent50692dc63c6955bc87210b1b43fe84e2985130c0 (diff)
downloadnetsurf-04769b3f076b00cc8ab5ad3cc0b2924af86acb1b.tar.gz
netsurf-04769b3f076b00cc8ab5ad3cc0b2924af86acb1b.tar.bz2
Remove caret when window is inactive, re-add when window becomes active again.
svn path=/trunk/netsurf/; revision=10133
-rwxr-xr-xamiga/gui.c7
-rwxr-xr-xamiga/gui.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 7c71caac6..aa2ddf63c 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -1513,8 +1513,15 @@ void ami_handle_msg(void)
}
break;
+ case WMHI_INACTIVE:
+ gwin->bw->window->c_h_temp = gwin->bw->window->c_h;
+ gui_window_remove_caret(gwin->bw->window);
+ break;
+
case WMHI_ACTIVE:
if(gwin->bw) curbw = gwin->bw;
+ if(gwin->bw->window->c_h_temp)
+ gwin->bw->window->c_h = gwin->bw->window->c_h_temp;
break;
case WMHI_INTUITICK:
diff --git a/amiga/gui.h b/amiga/gui.h
index 07f2bcd05..ea13410e8 100755
--- a/amiga/gui.h
+++ b/amiga/gui.h
@@ -115,6 +115,7 @@ struct gui_window
int c_x;
int c_y;
int c_h;
+ int c_h_temp;
int scrollx;
int scrolly;
struct history_window *hw;