Skip to content

[Linux/Wayland] - Window Icon Not Set on Asset Pack Change #939

Open

Description

@ChristianSilvermoon

Describe the issue

On Wayland systems, the window icon does not update to reflect the asset pack selected and remains the generic wayland icon

A type of bug

Native bug

Does this issue happens always or randomly?

Always happens

Version

v1.3.7

Version Hash

#fb87fad

Platform

Linux

Processor architecture

x86_64 / x64 (64-bit x86)

Log file (if presented)

No response

Example Case

SDL_VIDEODRIVER=wayland ./thextech

Recording

No response

Vanilla Recording

No response

Additional context

No response

Activity

  1. added
    NEW-BUG
    on Apr 5, 2025
  2. added
    native bug
    need an analys
    and removed
    NEW-BUG
    on May 13, 2025
  3. Wohlstand commented on May 13, 2025

    @Wohlstand
    Member

    First in my mind that it's possible SDL2 side implementation as icon installation uses the same code. Anyway, I think, your desktop environment overrides icon from the desktop file rather than let application set a custom one, just a hypothesis 🤔

  4. Wohlstand commented on Jul 8, 2025

    @Wohlstand
    Member

    I guess I should check the list of bugs at SDL2 and report them if it happens. Oh, let me make a simple demo that changes icon on the fly and I will let you try it yourself and tell, does it changes icons or not.

  5. ChristianSilvermoon commented on Jul 9, 2025

    @ChristianSilvermoon
    Author

    First in my mind that it's possible SDL2 side implementation as icon installation uses the same code. Anyway, I think, your desktop environment overrides icon from the desktop file rather than let application set a custom one, just a hypothesis 🤔

    I'm using KDE Plasma 6.3.5 currently if that helps

  6. added theissue type on Jul 10, 2025
  7. Wohlstand commented on Jul 10, 2025

    @Wohlstand
    Member

    I made a super-simple SDL2 demo that changes icon, please try it in action:

    sdl-icon-test.tar.gz

    # build:
    gcc sdl-icon-test.c -o sdl-icon-test -lSDL2
    
    # run
    SDL_VIDEODRIVER=wayland ./sdl-icon-test

    And try to press arrow keys to see different icon set (it should match the content drawn on the window itself).

    BMP files should be together with the executable.

  8. Wohlstand commented on Jul 10, 2025

    @Wohlstand
    Member

    If it will gets reproduces, then we can report this to SDL2 itself as a bug.

  9. self-assigned this
    on Jul 10, 2025
  10. Wohlstand commented on Mar 17, 2026

    @Wohlstand
    Member

    Ping? I sent above the simple demo, could you try to test it, does it reproduces the same icon bug?

  11. ChristianSilvermoon commented on Mar 19, 2026

    @ChristianSilvermoon
    Author

    @Wohlstand Sorry about the delay! I hadn't looked at GitHub in a bit.

    I can confirm that your test successfully changes the icon on KDE Plasma 6.6.2 under a Wayland session!

  12. Wohlstand commented on Mar 19, 2026

    @Wohlstand
    Member

    Hm... and what if you try the latest game build? Still it fails or not? I updated SDL2 several times, and it should just work. Or build the game using system-wide SDL2 (CMake flags are for that). Will it bug or not?

  13. ChristianSilvermoon commented on Mar 19, 2026

    @ChristianSilvermoon
    Author

    Using my system's SDL2 it works, but it's worth noting that my System's SDL 2 is the sdl2-compat-2.32.64-1.fc43.x86_64 package on Nobara 43 which seems to be an SDL3-based backwards compatibility library.

    For reasons I'm unsure of I cannot get TheXTech to compile when using -DUSE_SYSTEM_SDL2=OFF, only when -DUSE_SYSTEM_SDL2=ON

  14. added a commit that references this issue on Oct 7, 2026
  15. added a commit that references this issue on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

native bugneed an analys

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions