diff options
Diffstat (limited to 'desktop/textinput.c')
-rw-r--r-- | desktop/textinput.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/desktop/textinput.c b/desktop/textinput.c index c0e0ba8f7..b8dced689 100644 --- a/desktop/textinput.c +++ b/desktop/textinput.c @@ -33,13 +33,13 @@ #include "utils/talloc.h" #include "utils/utf8.h" #include "utils/utils.h" +#include "netsurf/types.h" #include "netsurf/mouse.h" #include "netsurf/form.h" #include "netsurf/window.h" +#include "netsurf/browser_window.h" #include "netsurf/keypress.h" -#include "render/box.h" -#include "render/html_internal.h" -#include "render/layout.h" +#include "content/content.h" #include "desktop/browser_private.h" #include "desktop/textinput.h" @@ -92,13 +92,14 @@ void browser_window_remove_caret(struct browser_window *bw, bool only_hide) root_bw = browser_window_get_root(bw); assert(root_bw != NULL); - if (only_hide) + if (only_hide) { root_bw->can_edit = true; - else + } else { root_bw->can_edit = false; + } if (root_bw->window) { - guit->window->remove_caret(root_bw->window); + guit->window->event(root_bw->window, GW_EVENT_REMOVE_CARET); } } |