-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Listen Wayland events #82
Comments
Emm. in layershellev, I will mark the manually created window.. If you want to follow the new screen, I think you can use StartMode::AllScreens, then a new layershell surface will becreated.. But iced_layershell does not support to pass wl_output to create surface.. so maybe it will be useless? But if you want to listen to the event, maybe we need to make a pr to origin iced to let it allow use to add custom events to the iced::event by the way, I have seen your pr in ashell, you set the startMode to active, that means the main layershells will only created on the activated screen, but if you set to AllScreens, the new layershell will be created follow the outputs https://github.com/waycrate/lala-bar/blob/master/lala_bar/src/main.rs#L75 |
Sadly I think the same, we have to request a change to iced. I will try to avoid the necessity to get this information but for example in some situation I need to destroy the surface on the main monitor when an external one is connected and recreate the surface there |
but the |
I have an idea, I will create a new crate to listen to these events and pass to iced |
I add a new crate, and add a new feature, can you take a try? I think this will solve your problem |
I tried, but if I understand correctly, I should subscribe to the wayland event using the |
A, sorry, that is a mistake, I will fix it |
Ok. I have fix it, you can try it again. Now you can use the repo of that branch, and may you please take a try with the iced_layershell and that new crate of that branch? |
I don't know what is happened... I try to send the message in subscription(now I have changed it to listen), but after it successfully send the message, I cannot receive it . Can you help me resolve this problem? |
The problem is related to the |
ok, seems solved, thank you |
I see the changes, in this way every 10 ms we make a check, it would be nice to have the |
I have met some problems... I write an example to use the wloutput from the subscriber, but then it panic at the process of getting layer surface, can you help take a look? |
seems usable.. can you take a look? |
In the next few days I will be quite busy, I will try as soon as I can |
I tried to open a layer (using LayerOutputSetting::ChosenOutput(event) where
|
Update to the latest, I have made some changes. I have already noticed this issue, so now I have fixed it. Seems the wl_output by another eventloop cannot be used, so instead I pass the name of xdg_output |
I tried the example. Now doesn't crash but on my laptop when I connect an external monitor I get the event but the topbar is rendered on the main screen two time and not on the external one. |
Now I do not have external monitor, sorry, if you can help me fix it , I will be glad |
It would be possibile to receive Wayland events? Like for example when a new wl_output appears?
Currently the pop_os iced fork has these kind of event but maybe without forking iced it's impossible to obtain the same results.
My use case would be to create a new surface when a new monitor is attached
The text was updated successfully, but these errors were encountered: