Skip to content

Hyprland monitor active state is wrong after Screen move #64

@Janrupf

Description

@Janrupf

Description

When moving a Hyprland workspace from one monitor to another, it looses its active status.

Reproducer

Use the following Quickshell config:

import Quickshell
import Quickshell.Hyprland
import QtQuick

Repeater {
  model: Hyprland.workspaces.values

  Item {
    required property var modelData
    property bool isActive: modelData.active

    onIsActiveChanged: {
      console.log(`Workspace ${modelData.id} is now ${modelData.active ? "active" : "inactive"}`);
    }
  }
}

Trimmed output for workspace ID 1:

DEBUG qml: Workspace 1 is now active
<< Moving to another monitor here >>
DEBUG qml: Workspace 1 is now inactive

However, after the Workspace is moved, it is still focused on the new monitor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions