Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workspaces: Creation of second workspace doesn't always trigger #797

Open
ids1024 opened this issue Feb 6, 2025 · 0 comments
Open

workspaces: Creation of second workspace doesn't always trigger #797

ids1024 opened this issue Feb 6, 2025 · 0 comments

Comments

@ids1024
Copy link
Member

ids1024 commented Feb 6, 2025

At start of cosmic-comp and cosmic-panel, the workspaces applet does not seem to show the second workspace when it is created automatically by opening a window on the first workspace. Despite the fact the applet is successfully receiving the workspace update from the compositor.

This is fixed by changing workspaces, or moving the mouse over the applet.

After closing the window so there's only one workspace, opening a window again does have this issue though. Nor does switching to the next workspace and opening another window. I'm not sure why.

It looks like this is a bug in the auto-sizing handling in iced_winit? As far as I can tell. It appears https://github.com/pop-os/iced/blob/4ea727c08ea78053aac78d7b6c5a1faedcd43239/winit/src/program.rs#L1459-L1468 sends the RequestResize event , then https://github.com/pop-os/iced/blob/4ea727c08ea78053aac78d7b6c5a1faedcd43239/winit/src/program.rs#L1560-L1565 runs the update() method of the application. So it has already decided a resize isn't needed before it processes the workspace message from the subscription. And the resize then doesn't happen until a later message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant