diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-06-16 23:22:58 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-06-16 23:22:58 +0200 |
| commit | 41ffc2c485e8f42925f9a424b8af6fd69c2eac89 (patch) | |
| tree | f5fd5b7fd26e1f1a8107912de9f9340b81d3d44b /src/Fl_arg.cxx | |
| parent | 377ff11ec9995d2842257daa7edde4e57320512e (diff) | |
Fix "Under Ubuntu 22.04 any FLTK application appears in the Appmenu as 'FLTK'"
Diffstat (limited to 'src/Fl_arg.cxx')
| -rw-r--r-- | src/Fl_arg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_arg.cxx b/src/Fl_arg.cxx index f0ec4d543..46e9f7073 100644 --- a/src/Fl_arg.cxx +++ b/src/Fl_arg.cxx @@ -316,7 +316,7 @@ void Fl_Window::show(int argc, char **argv) { // set the class, which is used by X version of get_system_colors: if (name) {xclass(name); name = 0;} - else if (!xclass()) xclass(fl_filename_name(argv[0])); + else if (!xclass() || !strcmp(xclass(),"FLTK")) xclass(fl_filename_name(argv[0])); if (title) {label(title); title = 0;} else if (!label()) label(xclass()); |
