feat(namespace): allow setting namespace when a new window is opened.#142
Conversation
|
I do not think it is needed, the namespace won't be shown anywhere, and seems it is just used to find the program.. If you really want to add one, I think we need to add another field in StateUnit, and store the namespace in that place. But I still think it is not needed |
|
Actually, I don't need At first, I am working on #141 , I think it is like |
So I think keep it as now it is will be better, since it is unchangable value, and is decided when surface is created. When you come out the idea to use this field, then I will be glad to accept this pr |
|
@Decodetalkers Maybe we can add this in iced14. |
Ok, I have understand this usecase, but I want some specific example. Emm, then for example, can you tell me some unique namespace, and how does the application perform when being set to that namespace. |
|
namespaces specified by kwin can be found in the same file. here is the code: In kwin, different window types will have different effects. The definition of Here are some code snippets about different window types in kwin But I think here we should not focus on what namespace effects. But we should allow an application opening windows in different namespaces. The effect of a namespace depends on the implementation of a compositor. |
|
Ok, can you rebase this pr, to make the flow run again? |
|
yes, now you should push to master now, iced14 branch is merged now.. sorry not to tell you |
Signed-off-by: fortime <palfortime@gmail.com>
18cad79 to
8b4a228
Compare
I have rebased it on master. Can you have a review of it? |
layershellev/src/lib.rs
Outdated
| output, | ||
| layer, | ||
| window_state.namespace.clone(), | ||
| namespace.clone().unwrap_or_else(|| window_state.namespace.clone()), |
There was a problem hiding this comment.
Maybe the first clone is not needed I think
There was a problem hiding this comment.
done. It's weird that I remember it is a reference before. And clippy doesn't find it out.
Signed-off-by: fortime <palfortime@gmail.com>
|
Thank you |
I don't know what actually the
namespaceis used for. But it seems that we can allow the client to specify thenamespacefor each surface.wayland protocol: