-
-
Notifications
You must be signed in to change notification settings - Fork 724
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
hyprland/workspaces improvements #2316
Conversation
Great, thanks for this! I'll do some tests with this tomorrow with multiple monitors. I just compiled and ran it on a single monitor, and I had a segfault after switching to the fourth workspace, when it creates the new workspace button. I can't seem recreate it again, so I'll do some more testing. |
use IPC for click events, clang-tidy fixes
Can you please explain what named, special and named special workspaces are? |
I've found it in wiki. |
there seems to be an issue with dispatcher that makes giving no args use the dispatcher as arg, that's why clicking the non named special workspace doesn't work. |
This might not be a big problem but I notice the workspace creation is much slower than the wlr/workspaces implementation. Here's a video showing my bar with wlr/workspaces at the top, and your implementation on the bottom: 2023-07-16.10-24-52.mp4I quickly scroll through the workspaces, and have to wait every once in a while to let the bottom bar update. I built the latest master and noticed it doesn't have this problem, although it has another problem where it sometimes doesn't destroy the workspaces, resulting in something like this: EDIT: It's probably due to calling |
tested spamming the mouse wheel and it seems to update at the same speed as wlr. Also seems to be updating at the same speed as the IPC socket. |
fixed one of the issues for clicking the main special workspace on hyprland's side. |
Some more small improvements
I suggest this gets merged now, since the only issue is the non removed workspaces which only happen on spamming the mouse wheel. |
To clarify: this problem only occured for me on the master branch, not on this PR's branch. On this PR's branch, it's just a little slower compared to wlr/workspaces when creating & destroying hundreds of workspaces per second. Not a big deal. I agree it can be merged now. |
@Alexays can this be merged? I added persistent workspaces on my own fork and would like to open a separate PR for this. |
Yes, LGTM |
Some improvements to the hyprland/workspaces modules
didn't find any other issues/bugs
will also ping @Anakael @zjeffer in case I accidentally broke something