hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.41k stars 899 forks source link

Hyprland's IPC notifies the creation of workspaces with `special:special:...` in certain cases #3424

Open Syndelis opened 1 year ago

Syndelis commented 1 year ago

Hyprland Version

Hyprland, built from branch at commit 96d555e8e794627bfc561e294e148ab8a9961fcc dirty (). Tag: v0.29.1 flags: (if any)

Bug or Regression?

Bug

Description

I have the following keybind configured:

bind = SUPER SHIFT, S, movetoworkspace, special:scratchpad

When sending windows to this workspace, whether it already exists or not, Hyprland posts on its IPC the event createworkspace>>special:special:scratchpad. This is not much of a problem, since it's briefly followed by a destroyworkspace>>special:special:scratchpad, but it can mess with softwares that trim the special: part.

How to reproduce

  1. Add the following line to your Hyprland config:
    bind = SUPER SHIFT, S, movetoworkspace, special:scratchpad
  2. Connect to Hyprland's socket, via the following command:
    socat - UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock
  3. Send any window to this workspace via the keybind Super+Shift+S;
  4. Observe the logs and notice the creation and destruction of a workspace named special:special:scratchpad;

Crash reports, logs, images, videos

Here's the ouput from Hyprland's IPC I got for taking the same steps as described above

activewindow>>foot,foot
activewindowv2>>558b60b7a760
openwindow>>558b60b7a760,4,foot,foot
windowtitle>>558b60b7a760
activewindowv2>>558b60b7a760
activewindow>>foot,~
createworkspace>>special:scratchpad
movewindow>>558b60b7a760,special:scratchpad
createworkspace>>special:special:scratchpad
activewindow>>foot,socat - UNIX-CONNECT ~/P/Waybar
activewindowv2>>558b61806920
activewindow>>foot,socat - UNIX-CONNECT ~/P/Waybar
activewindowv2>>558b61806920
destroyworkspace>>special:special:scratchpad
vaxerski commented 1 year ago

oh no :(

Syndelis commented 1 year ago

oh no :(

I'd fix it myself, but couldn't compile due to missing wlr dependencies. Do you happen to know the necessary packages for Arch by any chance? @vaxerski

vaxerski commented 1 year ago

check the aur wlroots-git package's deps