git: 782429b1ba1f - main - x11/plasma6-plasma-desktop: Fix keyboard layout initialization in the SDDM Breeze theme

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sat, 01 Aug 2026 16:00:27 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=782429b1ba1f9bae6cd9da03c591f12d14c6b58c

commit 782429b1ba1f9bae6cd9da03c591f12d14c6b58c
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-08-01 14:53:15 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-08-01 15:25:58 +0000

    x11/plasma6-plasma-desktop: Fix keyboard layout initialization in the SDDM Breeze theme
    
    PR:             296696
---
 x11/plasma6-plasma-desktop/Makefile                 |  1 +
 .../files/patch-sddm-theme_KeyboardButton.qml       | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/x11/plasma6-plasma-desktop/Makefile b/x11/plasma6-plasma-desktop/Makefile
index 99fbb3dbfd23..642be8b41f08 100644
--- a/x11/plasma6-plasma-desktop/Makefile
+++ b/x11/plasma6-plasma-desktop/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	plasma-desktop
 DISTVERSION=	${KDE_PLASMA_VERSION}
+PORTREVISION=	1
 CATEGORIES=	x11 kde kde-plasma
 
 MAINTAINER=	kde@FreeBSD.org
diff --git a/x11/plasma6-plasma-desktop/files/patch-sddm-theme_KeyboardButton.qml b/x11/plasma6-plasma-desktop/files/patch-sddm-theme_KeyboardButton.qml
new file mode 100644
index 000000000000..e1ddb7260490
--- /dev/null
+++ b/x11/plasma6-plasma-desktop/files/patch-sddm-theme_KeyboardButton.qml
@@ -0,0 +1,21 @@
+--- sddm-theme/KeyboardButton.qml.orig	2026-07-07 12:50:32 UTC
++++ sddm-theme/KeyboardButton.qml
+@@ -36,17 +36,9 @@ PlasmaComponents.ToolButton {
+         Kirigami.Theme.colorSet: Kirigami.Theme.Window
+         Kirigami.Theme.inherit: false
+ 
+-        onAboutToShow: {
+-            if (instantiator.model === null) {
+-                let layouts = keyboard.layouts;
+-                layouts.sort((a, b) => a.longName.localeCompare(b.longName));
+-                instantiator.model = layouts;
+-            }
+-        }
+-
+         Instantiator {
+             id: instantiator
+-            model: null
++            model: keyboard.layouts
+             onObjectAdded: (index, object) => menu.insertItem(index, object)
+             onObjectRemoved: (index, object) => menu.removeItem(object)
+             delegate: PlasmaComponents.MenuItem {