Remove caret when window is inactive, re-add when window becomes active again.

svn path=/trunk/netsurf/; revision=10133
This commit is contained in:
Chris Young 2010-03-15 19:00:21 +00:00
parent 50692dc63c
commit 04769b3f07
2 changed files with 8 additions and 0 deletions

View File

@ -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:

View File

@ -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;