tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
79.46k stars 2.36k forks source link

[bug] Application flickers when resizing in WM #4236

Open M3DZIK opened 2 years ago

M3DZIK commented 2 years ago

Describe the bug

Application flickers when resizing when using window manager (I haven't checked how on DE)

video

Sorry about the quality, scaling and everything

Reproduction

  1. run any tauri app on window manager (shown on bspwm)
  2. resize app

Expected behavior

No response

Platform and versions

> tauri-app@0.1.0 tauri
> tauri "info"

Environment
  › OS: Linux Rolling Release X64
  › Node.js: 18.2.0
  › npm: 8.5.5
  › pnpm: 7.1.7
  › yarn: 1.22.19
  › rustup: 1.24.3
  › rustc: 1.61.0
  › cargo: 1.61.0
  › Rust toolchain: stable-x86_64-unknown-linux-gnu 

Packages
  › @tauri-apps/cli [NPM]: 1.0.0-rc.13
  › @tauri-apps/api [NPM]: 1.0.0-rc.6
  › tauri [RUST]: 1.0.0-rc.14,
  › tauri-build [RUST]: 1.0.0-rc.12,
  › tao [RUST]: 0.9.1,
  › wry [RUST]: 0.17.0,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../build
  › devPath: http://localhost:3000/
  › framework: React

App directory structure
  ├─ node_modules
  ├─ public
  ├─ src
  ├─ .git
  ├─ src-tauri
  └─ build


### Stack trace

_No response_

### Additional context

_No response_
JonasKruckenberg commented 2 years ago

Could you maybe add the tauri info for your host system too? With vms involved this could be anything really 😅

And second question: This only happens with Tauri windows right? Which Desktop Environment is your VM linux Installation using?

M3DZIK commented 2 years ago

I don't have Linux on the VM, I have it installed as the main system, I don't use DE, it's just a window manager. I don't have tauri installed by cargo, this only happens in the tauri app

WM: bspwm OS: Arch Linux

FabianLars commented 2 years ago

Can you check if epiphany (also known as "Gnome Web") has the same problem? it's a browser that uses webkitgtk so with this we can see check if it's a tauri or webkit issue.

M3DZIK commented 2 years ago

Can you check if epiphany (also known as "Gnome Web") has the same problem? it's a browser that uses webkitgtk so with this we can see check if it's a tauri or webkit issue.

I guess this problem did not occur when I was using the webkit. I will check in the near future

M3DZIK commented 2 years ago

This seems to be a bug in webkit.

video

LouisGariepy commented 1 year ago

I'm hitting this problem on Fedora 36 (Gnome, not on a VM) both on Wayland and Xorg. My tauri-app flickers when launched as an appimage, but Epiphany is perfectly smooth. I also noticed that the compiled binary from tauri-src/target/release does not flicker, but launching it through the appimage bundle does flicker. I know you're not supposed to run the tauri-src/target/release binary directly, but I thought it could be useful for debugging. I also tried to run different appimages (Discord, Krita), and I don't not see any significant flickering there.

MrPancakes39 commented 1 year ago
Info:
OS: EndeavourOS Linux
Epiphany version: Web 43.0+

GNOME Web flickers too not just tauri app.

Is there a fix being worked on?