From 51ed6ea2b064a672be11f2e63fe64b342c9a384d Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Mon, 29 Sep 2025 15:10:44 -0400 Subject: [PATCH] Compositor: fix getFocusedWindow() --- Services/CompositorService.qml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Services/CompositorService.qml b/Services/CompositorService.qml index b5cd62d2..4d30421c 100644 --- a/Services/CompositorService.qml +++ b/Services/CompositorService.qml @@ -128,7 +128,15 @@ Singleton { windowListChanged() } - // Get window title for focused window + // Get focused window + function getFocusedWindow() { + if (focusedWindowIndex >= 0 && focusedWindowIndex < windows.count) { + return windows.get(focusedWindowIndex) + } + return null + } + + // Get focused window title function getFocusedWindowTitle() { if (focusedWindowIndex >= 0 && focusedWindowIndex < windows.count) { return windows.get(focusedWindowIndex).title || "" @@ -177,14 +185,6 @@ Singleton { } } - // Get focused window - function getFocusedWindow() { - if (focusedWindowIndex >= 0 && focusedWindowIndex < windows.count) { - return windows[focusedWindowIndex] - } - return null - } - // Close window function closeWindow(windowId) { if (backend && backend.closeWindow) {