Disable mouse cursor hiding

pull/2/head
Stelios Bounanos 2008-09-05 01:39:41 +01:00
rodzic f3d895ef6e
commit 82296f10b0
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -77,7 +77,14 @@ int FTextBase::handle(int event)
if (event == FL_MOUSEWHEEL && !Fl::event_inside(this))
return 1;
return Fl_Text_Editor_mod::handle(event);
// Fl_Text_Editor::handle() calls window()->cursor(FL_CURSOR_DONE) when
// it receives an FL_KEYBOARD event, which crashes some buggy X drivers
// (e.g. Intel on the Asus Eee PC). Call handle_key directly to work
// around this problem.
if (event == FL_KEYBOARD)
return Fl_Text_Editor_mod::handle_key();
else
return Fl_Text_Editor_mod::handle(event);
}
void FTextBase::setFont(Fl_Font f, int attr)