Skip to content

Commit 3ca0679

Browse files
authored
fix: Fix Wayland resize/decoration bug. (#51)
* Update tao and revert our workaround to force XWayland.
1 parent 967aff4 commit 3ca0679

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

src-tauri/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/src/main.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,7 @@ use transport::commands::{transport_close, transport_send_data, ActiveConnection
1111
use transport::gatt::{gatt_connect, gatt_list_devices};
1212
use transport::serial::{serial_connect, serial_list_devices};
1313

14-
// Workaround for Tauri/WRY bug. See https://github.com/tauri-apps/tauri/issues/10686#issuecomment-2337395299
15-
#[cfg(target_os = "linux")]
16-
fn gnome_wayland_resize_fix() {
17-
if env::var("APPIMAGE").is_ok() || env::var("FLATPAK_ID").is_ok() {
18-
return;
19-
}
20-
21-
let desktop = env::var("XDG_CURRENT_DESKTOP")
22-
.unwrap_or_default()
23-
.to_lowercase();
24-
if desktop.contains("gnome") {
25-
env::set_var("GDK_BACKEND", "x11");
26-
}
27-
}
28-
2914
fn main() {
30-
#[cfg(target_os = "linux")]
31-
gnome_wayland_resize_fix();
32-
3315
tauri::Builder::default()
3416
.plugin(tauri_plugin_cli::init())
3517
.manage(ActiveConnection {

0 commit comments

Comments
 (0)