-
Notifications
You must be signed in to change notification settings - Fork 20
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
fix: Enable ScratchpadState
for sway feature
#48
Conversation
If you look for |
Did you compile with the pasting the error and the version of sway might help. My quick read of the docs doesn't show |
Line 382 in the link. It fails saying that it cannot be deserialized because that field is missing in the structure. |
Right, but it should not look for the field if you have the In any case if it was added in some version of sway I'd like to put that behind a new feature gate so making it required doesn't break old versions of sway. |
For me it is OK. I'm not in a hurry. I'm planning to migrate to sway but no hurries. So, feel free to modify it to put this under another feature and release whenever you can. |
Sorry, to reiterate if you have this crate with the I don't have sway so I'm not able to test this, but I will accept a PR if it's properly feature gated |
Sorry, but that's the problem I guess. It should not be skipped because it is in sway documentation. I don't know if I'm missing something but that parameter is sent by sway. It is in the documentation (I don't know since which version) and I'm getting this error in my simple program for handling tiling:
The branch that I'm executing is this one: https://github.com/pando85/i3-auto-layout/tree/feat/sway-support That's what I can see. I'm not using sway yet but I will have to migrate to wayland at some point. |
I can't merge any changes without know which version it changed in to put behind a different feature gate. Someone opened an issue saying the opposite thing here #45 and I don't have sway available to test. serde doesn't error out when you are parsing a subset of fields, the only way to get that error is if it attempts to get parsed but it isn't there.
how are you testing this without running sway? |
That log is from a test in sway. I'm not using it as desktop, I was just testing it. I sent you the documentation and you can run sway but don't worry I don't need you for making this work in my small program. Thank you for your code, it's working great in i3. |
I'm closing this for now. If someone wants to confirm there is an issue on sway, what version it changed in, then put a feature gate on which fields changed I'll accept that PR. |
I'm getting an error deserializing Window events in the current version of sway for Arch.