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] Titlebar shows when it should not #11052

Open
Waradu opened this issue Sep 18, 2024 · 0 comments
Open

[bug] Titlebar shows when it should not #11052

Waradu opened this issue Sep 18, 2024 · 0 comments
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@Waradu
Copy link

Waradu commented Sep 18, 2024

Describe the bug

tauri v2 with Nuxt v3

so I want to create full monitor confetti:

somewhere in the code:

const webview = new WebviewWindow('confetti', {
  url: '/confetti',
  transparent: true,
  decorations: false,
  alwaysOnTop: true,
  focus: false,
  fullscreen: true,
  shadow: false,
  skipTaskbar: true,
})

confetti.vue:

<template>
</template>

<script lang="ts" setup>
import { getCurrentWindow } from "@tauri-apps/api/window";

definePageMeta({
  layout: false,
});

const { proxy } = useScriptNpm({
  packageName: 'js-confetti',
  file: 'dist/js-confetti.browser.js',
  version: '0.12.0',
  scriptOptions: {
    //@ts-ignore
    use: () => typeof window.JSConfetti !== 'undefined' && new window.JSConfetti()
  },
})

getCurrentWindow().setIgnoreCursorEvents(true)

onMounted(async () => {
  proxy.addConfetti({
    confettiRadius: 6,
    confettiNumber: 500,
  })

  setTimeout(() => {
    getCurrentWindow().close()
  }, 3000);
})
</script>

but as soon as I "interact" with the window (obviously I click through (tested this) and even if something on another monitor is interacted with) this happens:

2024-09-18.15-48-07.online-video-cutter.com.mp4

the "titlebar" appeared as soon as I clicked (titlebar is not interactable)

Reproduction

Create a tauri app with nuxt and paste in the code from above (@nuxt/scripts package is required)

Expected behavior

No titlebar it should just stay invisible

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.22635 x86_64 (X64)
    ✔ WebView2: 128.0.2739.79
    ✔ MSVC:
        - Visual Studio Build Tools 2022
        - Visual Studio Community 2022
    ✔ rustc: 1.80.1 (3f5fd8dd4 2024-08-06)
    ✔ cargo: 1.80.1 (376290515 2024-07-16)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default) 
    - node: 20.10.0
    - pnpm: 9.0.2
    - npm: 10.8.3
    - bun: 1.1.27

[-] Packages
    - tauri 🦀: 2.0.0-rc.15
    - tauri-build 🦀: 2.0.0-rc.12
    - wry 🦀: 0.43.1
    - tao 🦀: 0.30.0

[-] Plugins
    - tauri-plugin-sql 🦀: 2.0.0-rc.2

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:3000/

Stack trace

No response

Additional context

support on discord said I should open a ticket

@Waradu Waradu added status: needs triage This issue needs to triage, applied to new issues type: bug labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants