Comments (4)
I'm going to close this issue since i ended up going with an alternative solution.
Considering how far downstream the issue ultimately is, as its specific to gtk, i don't think its likely this will change for potentially years even so there seems little value in hoping for an eventual implementation via exposing some method with wry.
It would theoretically be possible via an integration with wgpu using blitz but blitz seems like it would need a ton of enhancements to fully support what I'm hoping to achieve as well.
Thanks for the support :)
lockscreen is complete if anyone's interested!
https://github.com/imgurbot12/dynlock
from dioxus.
I'm not familiar with wayland lock screens, but wry does expose methods to render a webview inside other windows which may be helpful. Dioxus could probably expose an API that allows you to do something similar
from dioxus.
Thanks for the response. I did actually try using wry directly, unfortunately wry does not yet have support for spawning from an existing window as a child for wayland as of yet.
Wry uses tao, which uses gtk as the backend for their windows on wayland and according to their documentation and examples it doesn't seem possible. quoted from those docs:
If you want to support X11 and Wayland at the same time, we recommend using WebViewExtUnix::new_gtk or WebViewBuilderExtUnix::new_gtk with gtk::Fixed.
their examples integrating with other renderers seems to confirm this as well
https://github.com/tauri-apps/wry/blob/dev/examples/wgpu.rs#L205
https://github.com/tauri-apps/wry/blob/dev/examples/winit.rs#L25
i assume gtk doesn't have the support for using a foreign surface anymore in gtk4 since it appears the exact sort of call i needed has been removed since the transition from gtk3: https://gitlab.gnome.org/GNOME/gtk/-/issues/2132
from dioxus.
I've unfortunately given up on the idea for the moment and have opted to use iced instead since I can integrate it directly with wgpu which thankfully can use a foreign surface.
https://github.com/Smithay/client-toolkit/blob/master/examples/wgpu.rs#L64
though this means I have to implement my own rendering backend for iced since im not using it through winit which comes with a lot of the extras needed for doing it easily.
I'd be happy to come back to it if there was some other way which is why I've reached out and asked as an issue lol.
from dioxus.
Related Issues (20)
- Empty page when `serve`ing a default Fullstack project via `dx build -r` (no server binary) HOT 2
- Dioxus Fullstack server doesn't use/serve Brotli-compressed files HOT 2
- Zed Plugin
- Missing HTML <slot> name attribute
- Dioxus CLI not able to load library after installation via Cargo
- [solved, needs review] Can't launch with props (web) HOT 2
- bug: Cannot pass `Cow<'static, str>` to component props that accept String HOT 2
- `use_coroutine` prints warning
- Nested Link nodes do not stop propagating events HOT 3
- WebView2Error after installation in Program Files folder on windows HOT 1
- centos 8 install dioxus-cli error: failed to run custom build command for `openssl-sys v0.9.102` HOT 1
- dioxus full stack hotreload fails with custom target dir HOT 1
- missing dependency at the dioxus guide HOT 1
- Desktop UI disappears when reloading HOT 1
- Remove unintentionally exposed features from the `dioxus` crate
- Fullstack Desktop CLI support
- Allow degrading Signal<T, SyncStorage> into Signal<T, UnsyncStorage>
- Document rust-analyzer config for fullstack autocomplete within server functions
- FMT tab issues and comment removal inside event handlers HOT 3
- Version mismatch dioxus-cli HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dioxus.