current_scrollbar_value = 0;
cursor_timeout.start();
workarea_->setFocus();
- work_area_focus = true;
- lyx_focus = false;
using_xterm_cursor = false;
}
// update(1) -> update(1 + 2 + 4) -> update(7) -> update(SELECT|FITCUR|CHANGE)
// update(3) -> update(1) -> update(1) -> update(SELECT)
-//void BufferView::Pimpl::update(signed char f)
void BufferView::Pimpl::update(BufferView::UpdateCodes f)
{
owner_->updateLayoutChoice();
goto set_timer_and_return;
}
- if (lyx_focus && work_area_focus) {
- if (!bv_->the_locking_inset) {
- screen_->CursorToggle(bv_->text);
- } else {
- bv_->the_locking_inset->
- ToggleInsetCursor(bv_);
- }
- goto set_timer_and_return;
+ if (!bv_->the_locking_inset) {
+ screen_->CursorToggle(bv_->text);
} else {
- // Make sure that the cursor is visible.
- if (!bv_->the_locking_inset) {
- screen_->ShowCursor(bv_->text);
- } else {
- if (!bv_->the_locking_inset->isCursorVisible())
- bv_->the_locking_inset->
- ToggleInsetCursor(bv_);
- }
- // This is only run when work_area_focus or lyx_focus is false.
- Window tmpwin;
- int tmp;
- XGetInputFocus(fl_display, &tmpwin, &tmp);
- // Commenting this out, we have not had problems with this
- // for a long time. We will probably work on this code later
- // and we can reenable this debug code then. Now it only
- // anoying when debugging. (Lgb)
- //if (lyxerr.debugging(Debug::INFO)) {
- // lyxerr << "tmpwin: " << tmpwin
- // << "\nwindow: " << view->owner_->getForm()->window
- // << "\nwork_area_focus: " << view->work_area_focus
- // << "\nlyx_focus : " << view->lyx_focus
- // << endl;
- //}
- if (tmpwin != owner_->getForm()->window) {
- lyx_focus = false;
- goto skip_timer;
- } else {
- lyx_focus = true;
- if (!work_area_focus)
- goto skip_timer;
- else
- goto set_timer_and_return;
- }
+ bv_->the_locking_inset->
+ ToggleInsetCursor(bv_);
}
-
+
set_timer_and_return:
cursor_timeout.restart();
- skip_timer:
return;
}
*
* Copyright 1998 The LyX Team.
*
- *======================================================*/
+ * ======================================================
+ */
#include <config.h>
}
-int InsetFoot::Latex(Buffer const * buf, ostream & os, bool fragile, bool fp) const
+int InsetFoot::Latex(Buffer const * buf,
+ ostream & os, bool fragile, bool fp) const
{
os << "\\footnote{%\n";
}
-LyXFont InsetFoot::GetDrawFont(BufferView * bv,LyXParagraph * p, int pos) const
+LyXFont InsetFoot::GetDrawFont(BufferView * bv,
+ LyXParagraph * p, int pos) const
{
LyXFont fn = getLyXText(bv)->GetFont(bv->buffer(), p, pos);
fn.decSize().decSize();