diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-03 09:46:37 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-03 09:46:37 +0100 |
| commit | d8cb8ec9167634d0e09201043ba8a539d659b849 (patch) | |
| tree | eb1389cebbc3707455dd6197b92b61fe34c383c2 /src/Fl_Native_File_Chooser_Kdialog.cxx | |
| parent | 47154602ddac68be9098cbb91011158ed69bdcf9 (diff) | |
Fix for issue #401. No longer attempt to transiently inactivate the maximize button.
This inactivation works with some window managers, but not with KDE or xfce.
It's probably an issue of these WM rather than of FLTK.
Diffstat (limited to 'src/Fl_Native_File_Chooser_Kdialog.cxx')
| -rw-r--r-- | src/Fl_Native_File_Chooser_Kdialog.cxx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/Fl_Native_File_Chooser_Kdialog.cxx b/src/Fl_Native_File_Chooser_Kdialog.cxx index 368a2b6ed..814f19d97 100644 --- a/src/Fl_Native_File_Chooser_Kdialog.cxx +++ b/src/Fl_Native_File_Chooser_Kdialog.cxx @@ -129,42 +129,12 @@ int Fl_Kdialog_Native_File_Chooser_Driver::show() { Fl_Event_Dispatch old_dispatch = Fl::event_dispatch(); // prevent FLTK from processing any event Fl::event_dispatch(fnfc_dispatch); - struct win_dims { - Fl_Window *win; - int minw,minh,maxw,maxh; - struct win_dims *next; - } *first_dim = NULL; - // consider all bordered, top-level FLTK windows - Fl_Window *win = Fl::first_window(); - while (win) { - if (!win->parent() && win->border()) { - Fl_Window_Driver *dr = Fl_Window_Driver::driver(win); - win_dims *dim = new win_dims; - dim->win = win; - dim->minw = dr->minw(); - dim->minh = dr->minh(); - dim->maxw = dr->maxw(); - dim->maxh = dr->maxh(); - //make win un-resizable - win->size_range(win->w(), win->h(), win->w(), win->h()); - dim->next = first_dim; - first_dim = dim; - } - win = Fl::next_window(win); - } // run event loop until pipe finishes while (data.fd >= 0) Fl::wait(); Fl::remove_fd(fileno(pipe)); pclose(pipe); // return to previous event processing by FLTK Fl::event_dispatch(old_dispatch); - while (first_dim) { - win_dims *dim = first_dim; - //give back win its resizing parameters - dim->win->size_range(dim->minw, dim->minh, dim->maxw, dim->maxh); - first_dim = dim->next; - delete dim; - } if (data.all_files) { // process text received from pipe if (data.all_files[strlen(data.all_files)-1] == '\n') data.all_files[strlen(data.all_files)-1] = 0; |
