Skip to content

[bug] Always on top not working on Wayland #3117

@ghost

Description

Describe the bug

When setting the window to be always on top, it's expected to never be behind any window. The same way browsers implement the behaviour of "Picture in Picture".

a picture shown "always on top" failing

Here we can see that the property is set to true and it stays behind the terminal. The same thing is true if I was to use appWindow.setAlwaysOnTop(true).

Reproduction

  1. From a script in the main view invoke WebviewWindow with alwaysOnTop set to true;
  2. Change focus to another window;
  3. See the previous WebviewWindow not on top.

Expected behavior

When setting the window to be always on top, it's expected to never be behind any window.

Platform and versions

Operating System - Manjaro, version 21.2.0 X64
DE: GNOME 41.2 on Wayland
Kernel: 5.15.7-1-MANJARO
Node.js - 17.1.0
@tauri-apps/cli - 1.0.0-beta.10
@tauri-apps/api - 1.0.0-beta.8
vite - 2.7.7

Stack trace

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: Linuxstatus: upstreamThis issue is blocked by upstream dependencies and we need to wait or contribute upstream fixestype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions