Skip to content

Can't change the size of the stalonetray window upon launch or tray update #22

@bigrand

Description

@bigrand

Describe the bug
Whatever options you use to launch stalonetray, it will always start with geometry: 75x50 and position itself in the center of the screen.

You can't change the size with resize mode (Sway), but you can if you enable all decorations with -d all and use your mouse to resize it; in that case, it will resize automatically to the size of the icons, but if the tray updates (another program icon is added/removed), it will revert to geometry: 75x50 and center itself again.

To Reproduce
I'm not sure what conditions cause this bug, but I believe it's caused by launching it with Xwayland. EndeavourOS Community Edition Sway (Wayland) is what I'm using.

This is how I'm launching it:
stalonetray -d all -bg "#0D0A15" -i 16 --log-level info --geometry 1x1+0+0 --grow-gravity W --icon-gravity E --max-geometry 3x1 -s 16 --scrollbars none

Current behavior
2023-01-26T18:06:34,607156494-05:00

Expected behavior
(I can only achieve this window size, using -d all so the title bar is enabled, but it shouldn't be needed)
2023-01-26T18:06:26,759650263-05:00

Log files
stalonetray_log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions