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.93k stars 914 forks source link

socket2 reports empty window title when switching workspaces #1446

Open Iamnotagenius opened 1 year ago

Iamnotagenius commented 1 year ago

Steps to reproduce: Run socat - UNIX-CONNECT:/tmp/hypr/$(echo $HYPRLAND_INSTANCE_SIGNATURE)/.socket2.sock | while read line; do echo "Recieved event: \"$line\""; done in a shell, then switch workspaces a couple of times. Expected output:

Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "workspace>>1"
Recieved event: "activewindow>>appimagekit_d2192f48ebc43a9db26e1dfa2bc5097b-Kotatogram_Desktop,Kotatogram (8150)"
Recieved event: "workspace>>4"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "workspace>>1"
Recieved event: "workspace>>4"
Recieved event: "activewindow>>appimagekit_d2192f48ebc43a9db26e1dfa2bc5097b-Kotatogram_Desktop,Kotatogram (8150)"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "workspace>>1"

Actual output:

Recieved event: "activewindow>>,"
Recieved event: "workspace>>4"
Recieved event: "activewindow>>appimagekit_d2192f48ebc43a9db26e1dfa2bc5097b-Kotatogram_Desktop,Kotatogram (8150)"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>1"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "workspace>>8"
Recieved event: "activewindow>>,"
Recieved event: "activewindow>>Brave-browser,New Issue · hyprwm/Hyprland - Brave"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "workspace>>1"
Recieved event: "activewindow>>,"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>8"
Recieved event: "activewindow>>Brave-browser,New Issue · hyprwm/Hyprland - Brave"
Recieved event: "workspace>>1"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "activewindow>>,"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>4"
Recieved event: "activewindow>>appimagekit_d2192f48ebc43a9db26e1dfa2bc5097b-Kotatogram_Desktop,Kotatogram (8150)"
Recieved event: "activewindow>>,"
Recieved event: "activewindow>>Brave-browser,New Issue · hyprwm/Hyprland - Brave"
Recieved event: "workspace>>8"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>1"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>8"
Recieved event: "activewindow>>Brave-browser,New Issue · hyprwm/Hyprland - Brave"
Recieved event: "workspace>>1"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>8"
Recieved event: "activewindow>>,"
Recieved event: "activewindow>>Brave-browser,New Issue · hyprwm/Hyprland - Brave"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>1"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>4"
Recieved event: "activewindow>>appimagekit_d2192f48ebc43a9db26e1dfa2bc5097b-Kotatogram_Desktop,Kotatogram (8150)"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>1"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "activewindow>>,"
Recieved event: "activewindow>>Brave-browser,New Issue · hyprwm/Hyprland - Brave"
Recieved event: "workspace>>8"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "workspace>>1"
Recieved event: "activewindow>>,"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>4"
Recieved event: "activewindow>>appimagekit_d2192f48ebc43a9db26e1dfa2bc5097b-Kotatogram_Desktop,Kotatogram (8150)"
Recieved event: "activewindow>>,"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "workspace>>1"
Recieved event: "activewindow>>,"
Recieved event: "activewindow>>appimagekit_d2192f48ebc43a9db26e1dfa2bc5097b-Kotatogram_Desktop,Kotatogram (8150)"
Recieved event: "workspace>>4"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>1"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>4"
Recieved event: "activewindow>>appimagekit_d2192f48ebc43a9db26e1dfa2bc5097b-Kotatogram_Desktop,Kotatogram (8150)"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>1"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>4"
Recieved event: "activewindow>>appimagekit_d2192f48ebc43a9db26e1dfa2bc5097b-Kotatogram_Desktop,Kotatogram (8150)"
Recieved event: "activewindow>>,"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "workspace>>1"
Recieved event: "activewindow>>,"
Recieved event: "workspace>>8"
Recieved event: "activewindow>>Brave-browser,New Issue · hyprwm/Hyprland - Brave"
Recieved event: "activewindow>>,"
Recieved event: "activewindow>>Alacritty,Alacritty"
Recieved event: "workspace>>1"

This is causing a weird behavior (for example window title not showing in waybar when last recieved message comes with an empty title). This does not occur when switching windows in the same workspace.

vaxerski commented 1 year ago

yeah it's a mechanism to prevent stuck focus on LS-es. Wonder if I can make much with it without a bigger rewrite.

Iamnotagenius commented 1 year ago

Seems to be fixed now (fdb7728) in case of switching workspaces. But this still occurs when I do movetoworkspace.