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
19.73k stars 838 forks source link

windowrulev2 not working if title/class is not available at window startup #1076

Closed niki-on-github closed 1 year ago

niki-on-github commented 1 year ago

When the title or class is not available at window startup all rules that are not included in the dynamic rules will not be applied to the window.

Example windowrulev2 rule:

windowrulev2 = tile,title:^(Spotify)$,xwayland:1,

Spotify always start in floating mode because the title is not available at startup (from log):

[LOG] Searching for matching rules for  (title: )

My workaround for now is to call listener_mapWindow when listener_setTitleWindow is called (See niki-on-github:Hyprland:fix/xwayland-windowrulev2.

taylor85345 commented 1 year ago

This is a known issue with spotify that doesn't have an easy solution. The current recommended workaround is to use spotifywm

vaxerski commented 1 year ago

doop of #382