fix tokens for xdg-desktop-portals - #15433
Merged
Merged
Conversation
tokens are only removed once a window maps, so things like xdg-desktop-portal got the 1337 month duration token added and always first launch in the wrong workspace. check PINITIALWSTRACKING and if mode 1 just give them a 1 second token. like other code paths does.
Member
|
question is does 1 second make sense? I think the entire point here is to launch some (slow) app, switch away, and have it launch where we were. Maybe like 10 seconds? |
Contributor
Author
fair point, 10 seconds seems reasonable for silly things like |
increase the timeout to 10 seconds, slow launching things like krita is above the 1 second we have now. if 10 seconds is to much it can always be fine tuned lower later.
|
maybe expose it as a variable under misc or quirks? |
add initial_workspace_token_timeout as a config option to be able to set the default timeout for the initial workspace tracking token.
Contributor
Author
yeah true, done. |
Contributor
Author
|
wiki PR hyprwm/hyprland-wiki#1596 |
vaxerski
reviewed
Jul 16, 2026
urgl, to much going on at the same time. TIMEOUT certainly makes more sense for an timeout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tokens are only removed once a window maps, so things like xdg-desktop-portal got the 1337 month duration token added and always first launch in the wrong workspace. check PINITIALWSTRACKING and if mode 1 just give them a 1 second token. like other code paths does.