mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-26 11:24:57 +03:00
Remove caret when window is inactive, re-add when window becomes active again.
svn path=/trunk/netsurf/; revision=10133
This commit is contained in:
parent
50692dc63c
commit
04769b3f07
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user