fix(hyprland): ignore bogus "error" keyboard layout. fix #1390

This commit is contained in:
Lemmy
2026-03-10 21:03:51 -04:00
parent ec40cb81a4
commit 719fd7ba70
+6
View File
@@ -399,6 +399,12 @@ Item {
const layoutNameStart = beforeParenthesis.lastIndexOf(',') + 1;
const layoutName = ev.substring(layoutNameStart);
// Ignore bogus "error" layout reported by virtual keyboards (e.g. wtype)
if (layoutName.toLowerCase() === "error") {
Logger.d("HyprlandService", "Ignoring bogus 'error' layout from activelayout event");
return;
}
KeyboardLayoutService.setCurrentLayout(layoutName);
Logger.d("HyprlandService", "Keyboard layout switched:", layoutName);
} catch (e) {