Skip to content
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

WindowBuilder::with_decorations(false) doesn't work on wayland kde. #899

Open
jibejb opened this issue Apr 2, 2024 · 2 comments
Open

WindowBuilder::with_decorations(false) doesn't work on wayland kde. #899

jibejb opened this issue Apr 2, 2024 · 2 comments

Comments

@jibejb
Copy link

jibejb commented Apr 2, 2024

Describe the bug
decoration set false doesn't work on Wayland KDE.
When running the example "decorations" (example/decorations.rs), press "space", the window decoration shluld disappear, then press "space" again, the window decoration should appear. But it only works on X11 or wayland gnome.
When using KDE Wayland, the window decoration (including titlebar) always shown, even press "space" again and again.
Steps To Reproduce

  1. clone tao repo.
  2. cd tao directory.
GDK_BACKEND=wayland cargo run --example decorations

set "GDK_BACKEND=wayland" environment variable and run decorations example
then press "space" key.

Expected behavior
When press "space" key, the window decorations (including the titlebar) disappear. Press the "space" key again the window decorations appear.

Screenshots
If applicable, add screenshots to help explain your problem.

Platform and Versions (please complete the following information):
OS: Archlinux x86_64 KDE plasma 6
Rustc:
1.77.1 (7cf61ebde 2024-03-27)
Additional context

#tauri-apps/tauri#6562
#https://gitlab.gnome.org/GNOME/gtk/-/issues/5479

@jibejb
Copy link
Author

jibejb commented Apr 2, 2024

I have changed the gtk3 source code according to #https://gitlab.gnome.org/GNOME/gtk/-/issues/5479 and compile the gtk3. This problem seems to be solved in gtk3 application and gtk-rs application. But when I link the customed gtk3 lib to tao(by using LD_LIBRARY_PATH), It doesn't work with tao, tao still has this bug.

@jibejb
Copy link
Author

jibejb commented Apr 5, 2024

I have tested it on Windows subsystem for Linux. It works well on wsl wayland, but doesn't work on wsl x11. Very strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants