[plasma/kwin] src/plugins/outputlocator: effects/outputlocator: User friendly name for the internal screen
Vlad Zahorodnii <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 89eee11ef3185136db92113abe37e92c4bd34aeb by Vlad Zahorodnii, on behalf of Marco Martin.
Committed on 28/07/2026 at 07:58.
Pushed by vladz into branch 'master'.
effects/outputlocator: User friendly name for the internal screen
On internal screens, call internal screens "Built-in Screen" in
the osd, in order to have the exact same nomenclature that KScreen
uses
CCBUG:523181
M +3 -0 src/plugins/outputlocator/outputlocator.cpp
https://invent.kde.org/plasma/kwin/-/commit/89eee11ef3185136db92113abe37e92c4bd34aeb
diff --git a/src/plugins/outputlocator/outputlocator.cpp b/src/plugins/outputlocator/outputlocator.cpp
index f21b4b29ca6..5e1266ded6e 100644
--- a/src/plugins/outputlocator/outputlocator.cpp
+++ b/src/plugins/outputlocator/outputlocator.cpp
@@ -22,6 +22,9 @@ namespace KWin
static QString outputName(const LogicalOutput *screen)
{
+ if (screen->isInternal()) {
+ return i18nc("@label", "Built-in Screen");
+ }
const auto screens = effects->screens();
const bool shouldShowSerialNumber = std::any_of(screens.cbegin(), screens.cend(), [screen](const LogicalOutput *other) {
return other != screen && other->manufacturer() == screen->manufacturer() && other->model() == screen->model();