Skip to content

All windows always go to a single monitor, the Mac monitor. Rift does not respect the isolation of spaces. #138

Description

@dagrlx

Hello, I use two monitors, the Mac monitor and an external monitor. Since the penultimate update, I haven't been able to use Rift again. All the windows go to the Mac monitor, and it's hell trying to move them to the external monitor by dragging and dropping. Sometimes I have to close the app, focus on the external monitor, and reopen the app there. But as soon as I switch to another workspace, all the windows move back to the Mac monitor.
Rift is not respecting the space isolation. I have deleted and reinstalled Rift several times, activated it via rift services start, and used brew services start acsandmann/tap/rift.

I have used the default configuration default_disable = true, but when I press Alt+Z, both monitors are activated regardless of which monitor I have selected at the time of activation. I would like to take this opportunity to ask: does toggle_space_activated only activate Rift in the selected space, or should it also deactivate it if it is active? Because once I activate it, I cannot deactivate it using Alt+Z and I have to stop the service.

I disabled Sketchybar thinking it might be the cause of the problem, but it wasn't. I use DisplayLink for the external monitor, but I disabled it anyway and connected the external monitor directly to the Mac, but Rift's bad behavior is the same.

Before version 0.2.0, I didn't have this problem, and I don't know what else to check. I've used the default settings from the wiki, but everything is the same.

I had removed Aerospace and Hyperspace because I wanted to give this beautiful project a chance. I know it's very new, but something happened in the code. Thank you very much for your efforts to move Rift forward.
I don't want to go back to Hyperspace or Aerospace, so today I worked without using a tiling manager.

rift-cli query displays
[
  {
    "frame": {
      "origin": {
        "x": 0.0,
        "y": 0.0
      },
      "size": {
        "height": 1080.0,
        "width": 1920.0
      }
    },
    "name": "LG FHD",
    "screen_id": 3,
    "space": 1,
    "uuid": "CB1BEAEC-22F3-49BE-C90B-A2661D91F570"
  },
  {
    "frame": {
      "origin": {
        "x": 1920.0,
        "y": 180.0
      },
      "size": {
        "height": 900.0,
        "width": 1440.0
      }
    },
    "name": "Built-in Retina Display",
    "screen_id": 1,
    "space": 28,
    "uuid": "37D8832A-2D66-02CA-B9F7-8F30A301B230"
  }
]

rift-cli query workspaces
[
  {
    "id": "VirtualWorkspaceId(9v1)",
    "index": 0,
    "name": "A",
    "is_active": false,
    "window_count": 1,
    "windows": [
      {
        "id": {
          "pid": 34786,
          "idx": 3660
        },
        "title": "Elementos de inicio y extensiones",
        "frame": {
          "origin": {
            "x": 3358.0,
            "y": 1028.0
          },
          "size": {
            "width": 835.0,
            "height": 900.0
          }
        },
        "is_floating": true,
        "is_focused": false,
        "bundle_id": "Configuración del Sistema",
        "window_server_id": 3660
      }
    ]
  },
  {
    "id": "VirtualWorkspaceId(10v1)",
    "index": 1,
    "name": "B",
    "is_active": true,
    "window_count": 1,
    "windows": [
      {
        "id": {
          "pid": 33848,
          "idx": 3653
        },
        "title": "~",
        "frame": {
          "origin": {
            "x": 1925.0,
            "y": 185.0
          },
          "size": {
            "width": 1430.0,
            "height": 890.0
          }
        },
        "is_floating": false,
        "is_focused": true,
        "bundle_id": "Ghostty",
        "window_server_id": 3653
      }
    ]
  },
  {
    "id": "VirtualWorkspaceId(11v1)",
    "index": 2,
    "name": "C",
    "is_active": false,
    "window_count": 0,
    "windows": []
  },
  {
    "id": "VirtualWorkspaceId(12v1)",
    "index": 3,
    "name": "D",
    "is_active": false,
    "window_count": 1,
    "windows": [
      {
        "id": {
          "pid": 33655,
          "idx": 3640
        },
        "title": "New Issue - Vivaldi",
        "frame": {
          "origin": {
            "x": 1925.0,
            "y": 185.0
          },
          "size": {
            "width": 1430.0,
            "height": 890.0
          }
        },
        "is_floating": false,
        "is_focused": false,
        "bundle_id": "Vivaldi",
        "window_server_id": 3640
      }
    ]
  },
  {
    "id": "VirtualWorkspaceId(13v1)",
    "index": 4,
    "name": "E",
    "is_active": false,
    "window_count": 1,
    "windows": [
      {
        "id": {
          "pid": 39196,
          "idx": 3848
        },
        "title": ".config — config.toml",
        "frame": {
          "origin": {
            "x": 1925.0,
            "y": 185.0
          },
          "size": {
            "width": 1430.0,
            "height": 890.0
          }
        },
        "is_floating": false,
        "is_focused": false,
        "bundle_id": "Zed",
        "window_server_id": 3848
      }
    ]
  },
  {
    "id": "VirtualWorkspaceId(14v1)",
    "index": 5,
    "name": "F",
    "is_active": false,
    "window_count": 0,
    "windows": []
  },
  {
    "id": "VirtualWorkspaceId(15v1)",
    "index": 6,
    "name": "G",
    "is_active": false,
    "window_count": 0,
    "windows": []
  },
  {
    "id": "VirtualWorkspaceId(16v1)",
    "index": 7,
    "name": "H",
    "is_active": false,
    "window_count": 0,
    "windows": []
  }
]

Logs
rift_dgarciar.err.log

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions