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

[bug] Glitches with menu on Ubuntu #567

Closed
schneiderfelipe opened this issue Sep 22, 2022 · 4 comments · Fixed by #562 · May be fixed by grant0417/tao#1
Closed

[bug] Glitches with menu on Ubuntu #567

schneiderfelipe opened this issue Sep 22, 2022 · 4 comments · Fixed by #562 · May be fixed by grant0417/tao#1
Labels
status: needs triage This issue or pull request needs to be investigated type: bug

Comments

@schneiderfelipe
Copy link

Describe the bug

I see some glitches when defining a native menu under Ubuntu.
When unfocused, the window seems fine.

image

Menu opened:

image

Window unfocused:

image

Reproduction

This is the minimal main function I'm currently using:

[...]

fn main() {
    let file_submenu = tauri::Submenu::new(
        "File",
        tauri::Menu::new().add_native_item(tauri::MenuItem::Quit),
    );
    let menu = tauri::Menu::new().add_submenu(file_submenu);

    tauri::Builder::default()
        .menu(menu)
        .run(tauri::generate_context!())
        .expect("Tauri application should run successfully");
}

Expected behavior

No transparency, similar to when the window is not focused (see above).

Another application working as expected, for comparison:

image

Unfocused:

image

Platform and versions

npm run tauri info

> vich@0.0.0 tauri
> tauri "info"


Environment
  › OS: Ubuntu 22.04 X64
  › Node.js: 16.14.1
  › npm: 8.5.0
  › pnpm: Not installed!
  › yarn: Not installed!
  › rustup: 1.25.1
  › rustc: 1.63.0
  › cargo: 1.63.0
  › Rust toolchain: stable-x86_64-unknown-linux-gnu

Packages
  › @tauri-apps/cli [NPM]: 1.1.1
  › @tauri-apps/api [NPM]: 1.1.0
  › tauri [RUST]: 1.1.1,
  › tauri-build [RUST]: 1.1.1,
  › tao [RUST]: 0.14.0,
  › wry [RUST]: 0.21.1,

App
  › framework: Svelte

App directory structure
  ├─ .svelte-kit
  ├─ dist
  ├─ src-tauri
  ├─ static
  ├─ node_modules
  └─ srcneofetch
            .-/+oossssoo+/-.               schneider@apollo14
        `:+ssssssssssssssssss+:`           ------------------
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 22.04.1 LTS x86_64
    .ossssssssssssssssssdMMMNysssso.       Kernel: 5.15.0-48-generic
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Uptime: 5 hours, 55 mins
  +ssssssssshmydMMMMMMMNddddyssssssss+     Packages: 3501 (dpkg), 8 (snap)
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Shell: zsh 5.8.1
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Resolution: 1920x1080
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   DE: GNOME
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM Theme: Adwaita
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Theme: Yaru-magenta-dark [GTK2/3]
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Icons: Yaru-magenta [GTK2/3]
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Terminal: tmux
  +sssssssssdmydMMMMMMMMddddyssssssss+     CPU: AMD Ryzen 5 1600 (12) @ 3.200GHz
   /ssssssssssshdmNNNNmyNMMMMhssssss/      GPU: AMD ATI Radeon RX 470/480/570/570X/580/580X/5
    .ossssssssssssssssssdMMMNysssso.       Memory: 7876MiB / 15929MiB
      -+sssssssssssssssssyyyssss+-
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-.

Stack trace

No response

Additional context

No response

@schneiderfelipe schneiderfelipe added status: needs triage This issue or pull request needs to be investigated type: bug labels Sep 22, 2022
@amrbashir
Copy link
Member

amrbashir commented Sep 22, 2022

is your window transparent? if not, then it is probably related to db7e5cb

@schneiderfelipe
Copy link
Author

is your window transparent?

No.

if not, then it is probably related to tauri-apps/tao@db7e5cb

Probably. Thanks for referencing this. Should this issue be transferred to tauri-apps/tao?

@amrbashir
Copy link
Member

yeah, I will transfer it

@amrbashir amrbashir transferred this issue from tauri-apps/tauri Sep 23, 2022
@ivanceras
Copy link

+1, I also have this issue on Ubuntu 20

            .-/+oossssoo+/-.                
        `:+ssssssssssssssssss+:`           ----------------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 20.04.1 LTS x86_64 
    .ossssssssssssssssssdMMMNysssso.       Kernel: 5.15.0-48-generic 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Uptime: 11 hours, 11 mins 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Packages: 3326 (dpkg), 20 (flatpak), 46 (snap) 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Shell: bash 5.0.17 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Resolution: 1920x1200 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   DE: GNOME 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM Theme: Adwaita 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Theme: Yaru-dark [GTK2/3] 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Icons: Yaru [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Terminal: gnome-terminal 
  +sssssssssdmydMMMMMMMMddddyssssssss+     CPU: Intel i7-3770K (8) @ 3.900GHz 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      GPU: Intel HD Graphics 
    .ossssssssssssssssssdMMMNysssso.       GPU: NVIDIA GeForce GTX 1070 
      -+sssssssssssssssssyyyssss+-         Memory: 5259MiB / 31987MiB 
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-.                                       
                                                                   



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue or pull request needs to be investigated type: bug
Projects
None yet
3 participants