Fix "Under Ubuntu 22.04 any FLTK application appears in the Appmenu as 'FLTK'"

This commit is contained in:
ManoloFLTK 2024-06-16 23:22:58 +02:00
parent 377ff11ec9
commit 41ffc2c485
1 changed files with 1 additions and 1 deletions

View File

@ -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());