Corrects directly the input cursor position on window moving

This commit is contained in:
Markus Gans 2017-03-12 20:29:10 +01:00
parent 7ab1a6b353
commit 06ec274d00
4 changed files with 14 additions and 10 deletions

View File

@ -1,3 +1,6 @@
2017-03-13 Markus Gans <guru.mail@muenster.de>
* Corrects directly the input cursor position on window moving
2017-03-12 Markus Gans <guru.mail@muenster.de> 2017-03-12 Markus Gans <guru.mail@muenster.de>
* The FButtonGroup now has a scrolling area * The FButtonGroup now has a scrolling area
with on-demand scroll bars with on-demand scroll bars

View File

@ -279,12 +279,14 @@ void FDialog::setPos (int x, int y, bool)
// set the cursor to the focus widget // set the cursor to the focus widget
FWidget* focus_widget = FWidget::getFocusWidget(); FWidget* focus_widget = FWidget::getFocusWidget();
if ( focus_widget if ( focus_widget
&& focus_widget->isVisible() && focus_widget->isVisible()
&& focus_widget->hasVisibleCursor() ) && focus_widget->hasVisibleCursor() )
{ {
FPoint cursor_pos = focus_widget->getCursorPos(); FPoint cursor_pos = focus_widget->getCursorPos();
focus_widget->setCursorPos(cursor_pos); focus_widget->setCursorPos(cursor_pos);
updateVTermCursor(vwin);
} }
updateTerminal(); updateTerminal();

View File

@ -41,7 +41,6 @@ int main (int argc, char* argv[])
x = (app.getColumnNumber() - w) / 2; x = (app.getColumnNumber() - w) / 2;
y = (app.getLineNumber() - h) / 2; y = (app.getLineNumber() - h) / 2;
dgl->setGeometry (x, y, w, h); dgl->setGeometry (x, y, w, h);
dgl->setShadow();
// Create another button group // Create another button group
FButtonGroup* checkButtonGroup = new FButtonGroup("choice", dgl); FButtonGroup* checkButtonGroup = new FButtonGroup("choice", dgl);