glzr-io / glazewm

GlazeWM is a tiling window manager for Windows inspired by i3wm.
GNU General Public License v3.0
5.87k stars 169 forks source link

[Bug] some window rules don't work #786

Open perrylets opened 1 week ago

perrylets commented 1 week ago

Describe the bug

My window rule that sets some windows to floating don't apply to the Flow launcher settings and Steam windows that aren't the main one (except for the news window), the rule that ignores the window applies correctly to Steam Big Picture mode, but leaves a small gap at the bottom of the screen. This worked perfectly fine before updating to 3.4.0

Reproduction

window_rules:
  # Task Manager requires admin privileges to manage and should be ignored unless running
  # the WM as admin.
  - commands: ["ignore"]
    match:
      - window_process: { equals: "steamwebhelper" }
        window_title: { regex: ".*Big Picture.*" }

  - commands: ["set-floating"]
    match:
      - window_process: { equals: "steamwebhelper" }
        window_title: { regex: "(?!Steam).*" }

      - window_process: { equals: "Flow.Launcher" }
        window_title: { equals: "Settings" }

      - window_title: { equals: "Visual Studio Installer" }

Stack trace or error logs (if applicable)

No response

Version number

3.4.0

RiceaRaul commented 3 days ago

Hi @perrylets, the steam regex doesn't work because rust doesn't support lookahead negatives. I opened a thread https://github.com/glzr-io/glazewm/pull/798 with a fix that may help you.