Skip to content

[BUG] Scratchpad pop-ups behind main window #173

@AlexAntonik

Description

@AlexAntonik

Pyprland version
2.4.1

Describe the bug
When an window from scratchpad launches some sub-widows(like chose file form or some pop-up ) it apears behind main window, so i needed to drag main window around to reach this window.

To Reproduce
Steps to reproduce the behavior:

  1. Launch any app with dialogs or pop-ups in scratchpad(Thunar in my case).
  2. Perform action to get second window(open file in thunar)
    Image
    Image
    Image
    Expected behavior
    Second window should apear in front fo first one.

Configuration (provide following files/samples when relevant):

{ pkgs, ... }:
{
  home.packages = with pkgs; [ pyprland ];

  home.file.".config/hypr/pyprland.toml".text = ''
    [pyprland]
    plugins = [
      "scratchpads",
      "expose",
    ]

    [scratchpads.term]
    animation = "fromTop"
    command = "ghostty --class=com.mitchellh.ghostty-dropterm"
    class = "com.mitchellh.ghostty-dropterm"
    lazy = true
    size = "76% 70%"
    position= "12% 10%"

    [scratchpads.volume]
    animation = "fromTop"
    command = "pavucontrol"
    class = "pavucontrol"
    lazy = true
    size = "40% 90%"

    [scratchpads.yazi]
    animation = "fromBottom"
    command = "ghostty -e yazi"
    class = "com.mitchellh.ghostty"
    position = "2% 6%"
    size = "96% 92%"

    [scratchpads.telegram-desktop]
    animation = "fromTop"
    command = "telegram-desktop"
    class = "org.telegram.desktop"
    position = "2% 6%"
    size = "96% 92%"

    [scratchpads.thunar]
    animation = "fromBottom"
    command = "thunar"
    class = "thunar"
    size = "75% 70%"
  '';
}

Additional context
It apears that window correctly attaches to workspace and shifts fokus but stil apears behind. On 2.4.5 same behavior.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghyprland

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions