You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use Tauri to create "docked" apps (e.g. status bars) with wayland support, which generally requires the wlr layer shell protocol.
GTK provides support for this protocol but critically it requires initialisation before the window is first realised.
I investigated the codebase(s) for a while and discovered that the way Tauri and Tao work means that there's currently no convenient gap in the builder-based pipeline for this to occur.
Describe the solution you'd like
The simplest solution would be to provide a new builder property/config in tauri's WindowBuilder which can passed through to Tao's WindowBuilder allowing it to call the init_layer_shell method.
I've drafted a demo which I've been using myself and I'm happy clean it up and add tests to it etc as long as there aren't otherwise any objections or concerns with the proposal:
The workaround people are currently using is to transplant the WebView instance out of a tauri-owned window and into an unmanaged GTK window of their own creation.
There are quite a few related issues across repos. A lot of them have been about the layer shell, but have previously been incorrectly closed due to existing post-creation access to the gtk window.
The highlights (which include some links above are:
Describe the problem
I want to use Tauri to create "docked" apps (e.g. status bars) with wayland support, which generally requires the wlr layer shell protocol.
GTK provides support for this protocol but critically it requires initialisation before the window is first realised.
I investigated the codebase(s) for a while and discovered that the way Tauri and Tao work means that there's currently no convenient gap in the builder-based pipeline for this to occur.
Describe the solution you'd like
The simplest solution would be to provide a new builder property/config in tauri's WindowBuilder which can passed through to Tao's WindowBuilder allowing it to call the init_layer_shell method.
I've drafted a demo which I've been using myself and I'm happy clean it up and add tests to it etc as long as there aren't otherwise any objections or concerns with the proposal:
Alternatives considered
gtk_windowmethod #2083 (comment).Additional context
Companion Tao FR: tauri-apps/tao#1315
There are quite a few related issues across repos. A lot of them have been about the layer shell, but have previously been incorrectly closed due to existing post-creation access to the gtk window.
The highlights (which include some links above are: