X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbufferview_funcs.C;h=26073afe8d1bfd8cac3f41ca3410a6dfd045429b;hb=4148a9244547e7184c1dcc8234e9e62d3143a42c;hp=66fc4c0a24cff883d815a59548bd26f2350c8f68;hpb=45a03f4f67bb00f8142e465c615f348f0622eb32;p=lyx.git diff --git a/src/bufferview_funcs.C b/src/bufferview_funcs.C index 66fc4c0a24..26073afe8d 100644 --- a/src/bufferview_funcs.C +++ b/src/bufferview_funcs.C @@ -27,7 +27,6 @@ #include "lyx_cb.h" #include "layout_forms.h" -extern FD_form_paragraph * fd_form_paragraph; extern FD_form_character * fd_form_character; #ifndef NEW_INSETS @@ -168,10 +167,7 @@ void ProhibitInput(BufferView * bv) /* set the cursor to the watch for all forms and the canvas */ XDefineCursor(fl_display, bv->owner()->getForm()->window, cursor); - if (fd_form_paragraph->form_paragraph->visible) - XDefineCursor(fl_display, - fd_form_paragraph->form_paragraph->window, - cursor); + if (fd_form_character->form_character->visible) XDefineCursor(fl_display, fd_form_character->form_character->window, @@ -187,9 +183,7 @@ void AllowInput(BufferView * bv) /* reset the cursor from the watch for all forms and the canvas */ XUndefineCursor(fl_display, bv->owner()->getForm()->window); - if (fd_form_paragraph->form_paragraph->visible) - XUndefineCursor(fl_display, - fd_form_paragraph->form_paragraph->window); + if (fd_form_character->form_character->visible) XUndefineCursor(fl_display, fd_form_character->form_character->window);