summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-12-17 18:40:44 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-12-17 18:40:44 +0000
commit0542106cc247f5385388348cb4282b4018dfcc92 (patch)
treef11a49d9bd449303b589f68e5f350d7ea660077a /src/Fl_File_Chooser.cxx
parenta5c9bdac5d9dcc659c712eecc0eb867e9ac81c12 (diff)
Fl_File_Chooser wasn't calling Fl_Window::hotspot() prior to showing, so
you got the chooser centered where the mouse pointer was when your application first created it. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser.cxx')
-rw-r--r--src/Fl_File_Chooser.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_File_Chooser.cxx b/src/Fl_File_Chooser.cxx
index ab5ea30d9..ac62bc549 100644
--- a/src/Fl_File_Chooser.cxx
+++ b/src/Fl_File_Chooser.cxx
@@ -209,7 +209,8 @@ const char * Fl_File_Chooser::label() {
}
void Fl_File_Chooser::show() {
- window->show();
+ window->hotspot(fileList);
+window->show();
fileList->deselect();
}