From 7a288650b00ff43197ae8cb3d3eee9f259b7d7e4 Mon Sep 17 00:00:00 2001 From: Lemmy Date: Sun, 1 Mar 2026 15:54:12 -0500 Subject: [PATCH] sway: autofmt --- Services/Compositor/SwayService.qml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Services/Compositor/SwayService.qml b/Services/Compositor/SwayService.qml index 2abaca89a..f1d2c447c 100644 --- a/Services/Compositor/SwayService.qml +++ b/Services/Compositor/SwayService.qml @@ -45,7 +45,7 @@ Item { if (initialized) return; try { - I3.refreshWorkspaces() + I3.refreshWorkspaces(); Qt.callLater(() => { safeUpdateWorkspaces(); queryWindowWorkspaces(); @@ -448,17 +448,17 @@ Item { function handleInputEvent(ev) { try { - const eventData = JSON.parse(ev) + const eventData = JSON.parse(ev); if (eventData.change == "xkb_layout" && eventData.input != null) { - const input = eventData.input + const input = eventData.input; if (input.type == "keyboard" && input.xkb_active_layout_name != null) { - const layoutName = input.xkb_active_layout_name - KeyboardLayoutService.setCurrentLayout(layoutName) - Logger.d("SwayService", "Keyboard layout switched:", layoutName) + const layoutName = input.xkb_active_layout_name; + KeyboardLayoutService.setCurrentLayout(layoutName); + Logger.d("SwayService", "Keyboard layout switched:", layoutName); } } } catch (e) { - Logger.e("SwayService", "Error handling input event:", e) + Logger.e("SwayService", "Error handling input event:", e); } } @@ -506,7 +506,7 @@ Item { I3IpcListener { subscriptions: ["input"] onIpcEvent: function (event) { - handleInputEvent(event.data) + handleInputEvent(event.data); } }