diff options
| author | Davi Ribeiro <104164579+Markus328@users.noreply.github.com> | 2025-08-27 10:15:02 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-27 23:15:02 +1000 |
| commit | 51bcacded4f40cb87e860bda69f8f2234c17ed4b (patch) | |
| tree | 1176b5b1df515291a352420fee97eb73bc7b7144 | |
| parent | config: disable visualiser by default (diff) | |
| download | caelestia-shell-51bcacded4f40cb87e860bda69f8f2234c17ed4b.tar.gz caelestia-shell-51bcacded4f40cb87e860bda69f8f2234c17ed4b.tar.bz2 caelestia-shell-51bcacded4f40cb87e860bda69f8f2234c17ed4b.zip | |
hypr: fix active window and window focus (#483)
* services/hypr: fix active window and window focus
* format
---------
Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
| -rw-r--r-- | modules/background/Background.qml | 3 | ||||
| -rw-r--r-- | services/Hypr.qml | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/modules/background/Background.qml b/modules/background/Background.qml index bdba570..3cd84aa 100644 --- a/modules/background/Background.qml +++ b/modules/background/Background.qml @@ -60,6 +60,9 @@ Loader { } } + mask: Region {} + + Loader { anchors.right: parent.right anchors.bottom: parent.bottom diff --git a/services/Hypr.qml b/services/Hypr.qml index 3a3d5e4..d4782dc 100644 --- a/services/Hypr.qml +++ b/services/Hypr.qml @@ -11,9 +11,11 @@ Singleton { readonly property var toplevels: Hyprland.toplevels readonly property var workspaces: Hyprland.workspaces readonly property var monitors: Hyprland.monitors - readonly property HyprlandToplevel activeToplevel: Hyprland.activeToplevel + + readonly property HyprlandToplevel activeToplevel: Hyprland.activeToplevel?.wayland?.activated ? Hyprland.activeToplevel : null readonly property HyprlandWorkspace focusedWorkspace: Hyprland.focusedWorkspace readonly property HyprlandMonitor focusedMonitor: Hyprland.focusedMonitor + readonly property int activeWsId: focusedWorkspace?.id ?? 1 readonly property string kbLayout: kbMap.get(kbLayoutFull) ?? "??" property string kbLayoutFull: "?" |