From 531ab614e277dd96c6ebf3318b13689bea517c90 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 14 Oct 2022 15:38:22 +0200 Subject: Make sure display is open when using native file chooser (#514) --- src/Fl_Native_File_Chooser_GTK.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Fl_Native_File_Chooser_GTK.cxx b/src/Fl_Native_File_Chooser_GTK.cxx index b99a51ee2..a7300cdd7 100644 --- a/src/Fl_Native_File_Chooser_GTK.cxx +++ b/src/Fl_Native_File_Chooser_GTK.cxx @@ -926,6 +926,7 @@ Fl_Native_File_Chooser::Fl_Native_File_Chooser(int val) { // else, use GTK dialog if available at run-time // otherwise, use FLTK file chooser. platform_fnfc = NULL; + fl_open_display(); if (Fl::option(Fl::OPTION_FNFC_USES_GTK)) { #if USE_KDIALOG const char *desktop = getenv("XDG_CURRENT_DESKTOP"); -- cgit v1.2.3