From 41ffc2c485e8f42925f9a424b8af6fd69c2eac89 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 16 Jun 2024 23:22:58 +0200 Subject: Fix "Under Ubuntu 22.04 any FLTK application appears in the Appmenu as 'FLTK'" --- src/Fl_arg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- cgit v1.2.3