LGUG2Z / komorebi

A tiling window manager for Windows 🍉

Home Page:https://lgug2z.github.io/komorebi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]: Revit and Rhino don't tile

pjhfggij opened this issue · comments

Describe the bug
Neither Autodesk Revit nor McNeel Rhino get picked up by komorebi. They don't tile, clicking on their windows doesn't make komorebi's shortcuts to modify them (toggle tile command for example toggles the previously focused window) and they don't show up in the komorebic state output.

To Reproduce
Steps to reproduce the behavior:

  1. Start either Autodesk Revit or McNeel Rhino (both require a paid licence although Rhino has a free trial)
  2. See bug

Expected behavior
Both of them should tile like other programs (e.g. Autodesk AutoCAD and Trimble Sketchup both tile correctly).

Operating System

OS Name:                   Microsoft Windows 10
OS Version:                10.0.19045 Build 19045 

It's a virtual machine with GPU passthrough.

komorebic check Output

No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\<USER>

Looking for configuration files in C:\Users\<USER>

Found komorebi.json; this file can be passed to the start command with the --config flag

Found C:\Users\<USER>\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag

I have the same bug with Godot :(

When focusing the app the cursor is completely broken: always returns to centre on click and very laggy.

manage_rules

I tried many different manage_rules but none helps:

   {
      "kind": "Title",
      "id": "Godot Engine",
      "matching_strategy": "Equals"
    },
    { 
      "kind": "Title",
      "id": "Godot Engine",
      "matching_strategy": "StartsWith"
    },
    { 
      "kind": "Path",
      "id": "C:\\Godot\\",
      "matching_strategy": "StartsWith"
    },
    { 
      "kind": "Exe",
      "id": "Godot_v4.2.2-stable_win64.exe",
      "matching_strategy": "Equals"
    },
    { 
      "kind": "Exe",
      "id": "Godot_*.exe",
      "matching_strategy": "StartsWith"
    }

Versions

Edition       Windows 11 Education
Version       23H2
OS build      22631.3447
$ komorebi.exe --version
komorebi 0.1.25

Switching to pwsh also didn't help.

Godot I was able to try out myself; I noticed that it tiles correctly without any additional rules if you minimize it and then restore it, which suggests that it probably isn't sending the signals to the OS that a Windows app is supposed to when it starts up. Thankfully most apps like this send ObjectNameChange when they launch, so adding this makes it tile on first launch:

  "object_name_change_applications": [
    {
      "kind": "Class",
      "id": "Engine",
      "matching_strategy": "Equals"
    }
  ],

You can also match by the Exe if you want to

It works! Thank you for your fast investigations! 😄🙏

Small issue: Godot flickers on refocus

Flickering for a number of apps has been fixed on the master branch for a little bit now

@pjhfggij are you able to try the same sort of fix for Revit and Rhino? 👀