Skip to content
Snippets Groups Projects
Commit db7af2b2 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

test focus

parent 342c1969
No related branches found
No related tags found
No related merge requests found
......@@ -314,7 +314,6 @@ FlGui::FlGui(int argc, char **argv)
// graphic window should have the initial focus (so we can e.g. directly loop
// through time steps with the keyboard)
//graph[0]->gl[0]->take_focus();
Fl::focus(graph[0]->gl[0]);
// get onelab tree group (FIXME: should clean this up)
......
......@@ -1573,8 +1573,10 @@ void onelabGroup::rebuildTree(bool deleteWidgets)
delStrings = _treeStrings;
_treeWidgets.clear();
_treeStrings.clear();
// make sure we remove the focus from any widget that will be deleted
_tree->take_focus();
// make sure we remove the focus from any widget that will be deleted; not
// sure if this is still necessary; if it is, we should only do it if the
// focus is not in the graphical window:
// _tree->take_focus();
}
_addGmshMenus();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment