Bug 473875 - Applications made with Godot are grouped with the Godot editor in the Icons-only Task Manager
Summary: Applications made with Godot are grouped with the Godot editor in the Icons-o...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 5.27.7
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL: https://github.com/godotengine/godot/...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-29 00:26 UTC by poperigby
Modified: 2023-08-30 17:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Pixelorama being grouped with the Godot editor (107.87 KB, image/png)
2023-08-29 00:26 UTC, poperigby
Details

Note You need to log in before you can comment on or make changes to this bug.
Description poperigby 2023-08-29 00:26:27 UTC
Created attachment 161251 [details]
Pixelorama being grouped with the Godot editor

SUMMARY
Any application that is made with Godot (i.e. Pixelorama) is grouped under the Godot icon along with it's editor, in the Icons-only Task Manager. 

This is undesirable, because I might want to use both the editor and another Godot made app at the same time, and it makes it annoying to switch between them when they're grouped together. It also doesn't make any sense. For example, one wouldn't want every app made with Qt to be grouped under Qt Creator. 

STEPS TO REPRODUCE
1. Install the Godot editor (doesn't matter from where, distro packages or Flatpak)
2. Install an application made with Godot (i.e. Pixelorama)
3. Launch the Godot editor
4. Launch any application made with Godot

OBSERVED RESULT
All applications that are made with Godot are grouped under the Godot editor.

EXPECTED RESULT
Applications made with Godot are in their own group, and not grouped under the Godot editor

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Kernel Version: 6.4.11-200.fc38.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT
Manufacturer: ASUS
Comment 1 Nate Graham 2023-08-29 19:59:04 UTC
This would be happening because those apps are incorrectly setting their metadata (WM_CLASS, WM_STRING, etc) to be the same metadata that Godot Engine uses. I'd recommend reporting the issue to the developers of those apps. The Godot people might want to hear about it too; if this is common, it might suggest that the template that new apps use is pre-set to what's used by Godot itself, which, if true, isn't a great default value.
Comment 2 poperigby 2023-08-29 20:42:40 UTC
(In reply to Nate Graham from comment #1)
> This would be happening because those apps are incorrectly setting their
> metadata (WM_CLASS, WM_STRING, etc) to be the same metadata that Godot
> Engine uses. I'd recommend reporting the issue to the developers of those
> apps. The Godot people might want to hear about it too; if this is common,
> it might suggest that the template that new apps use is pre-set to what's
> used by Godot itself, which, if true, isn't a great default value.

Thank you! I've opened a bug report over on Godot's repository: https://github.com/godotengine/godot/issues/81141
Comment 3 Nate Graham 2023-08-29 21:13:11 UTC
You're welcome!
Comment 4 poperigby 2023-08-30 17:02:47 UTC
In my Godot bug report, one of the maintainers said that it might actually be a KDE bug. What do you think?

> In might be KDE bug as well, seems like it apply grouping only based on the first hints set, and do not change it if hints are changed. So if you start `Pixelorama` first and the editor second, it won't group it.
> 
> Starting `Pixelorama` first:
> 
>     * Start `Pixelorama`
> 
>     * Window is created and hints are set to `Godot_Engine`, `Godot`, new task icon is created.
> 
>     * Hints are changed to `Godot_Engine`, `Pixelorama`
> 
>     * Start `Godot Editor`
> 
>     * Window is created and hints are set to `Godot_Engine`, `Godot`, new task icon is created since hints do not match.
> 
> 
> Starting `Godot Editor` first:
> 
>     * Start `Godot Editor`
> 
>     * Window is created and hints are set to `Godot_Engine`, `Godot`, new task icon is created.
> 
>     * Start `Pixelorama`
> 
>     * Window is created and hints are set to `Godot_Engine`, `Godot`, hints match, and task icon is grouped.
> 
>     * Hints are changed to `Godot_Engine`, `Pixelorama`, but task icon is not changed/ungrouped.
Comment 5 Nate Graham 2023-08-30 17:08:48 UTC
Sort of. We do indeed not support changing window hints at runtime. We could, but we currently consider this to be an app bug.
Comment 6 Nate Graham 2023-08-30 17:09:47 UTC
To expand on that, the reason why we don't support window changing their hints at runtime is because it would cause windows to change their groupings at runtime, which would be extremely odd-looking and break your short-term muscle memory.
Comment 7 poperigby 2023-08-30 17:13:19 UTC
Alright, thanks for your explanation!