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

Can't move or resize window on Gnome + Wayland #3314

Closed
ndelobel opened this issue Dec 9, 2024 · 1 comment · Fixed by #3485
Closed

Can't move or resize window on Gnome + Wayland #3314

ndelobel opened this issue Dec 9, 2024 · 1 comment · Fixed by #3485

Comments

@ndelobel
Copy link

ndelobel commented Dec 9, 2024

Problem

When using dioxus desktop 0.6.0 on Gnome + Wayland the window can't be resized or moved.

I think it's related to this tauri issue tauri-apps/tauri#10686

The only workaround I found for now is to set GDK_BACKEND=x11 to run the window with XWayland. The problem only concerns Gnome + Wayland and not KDE + Wayland.

Steps To Reproduce

  • be on Gnome + Wayland
  • here is my very simple code :
use dioxus::desktop::Config;
use dioxus::prelude::*;

fn main() {
    LaunchBuilder::desktop()
        .with_cfg(
            Config::new().with_menu(None), // remove the default menu
        )
        .launch(App)
}

#[component]
fn App() -> Element {
    rsx! {HelloWorld {}}
}

#[component]
fn HelloWorld() -> Element {
    rsx! {span {"Hello, World!"}}
}

Environment:

  • Dioxus version: 0.6.0
  • Rust version: 1.83.0
  • OS info: Arch Linux
  • App platform: desktop
@inferrna
Copy link

Same on Clear Linux after update from 0.6-alpha to 0.6

sehnryr added a commit to sehnryr/dioxus that referenced this issue Jan 2, 2025
0.30.3 includes the fix for the resize issue DioxusLabs#3314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants