From b6c58628a6de00f2eea19b6daae4910ac6408469 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 4 Jun 2024 05:36:34 +0300 Subject: [PATCH] kwin: use KEditListWidget as window classes editor in dimscreen effect KCM more convenient than KLineEdit Signed-off-by: Ivailo Monev --- kwin/effects/dimscreen/dimscreen_config.ui | 34 ++++++++----------- .../effects/presentwindows/presentwindows.cpp | 2 +- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/kwin/effects/dimscreen/dimscreen_config.ui b/kwin/effects/dimscreen/dimscreen_config.ui index 27202869..a59e0b2b 100644 --- a/kwin/effects/dimscreen/dimscreen_config.ui +++ b/kwin/effects/dimscreen/dimscreen_config.ui @@ -10,41 +10,35 @@ 161 - - + + &Window Classes: + + Qt::AlignCenter + kcfg_WindowClasses - - - - Apply effect to the win&dow classes - + + - - - - Qt::Vertical - - - - 20 - 0 - - - - kcfg_WindowClasses + + + KEditListWidget + QWidget +
keditlistwidget.h
+
+
diff --git a/kwin/effects/presentwindows/presentwindows.cpp b/kwin/effects/presentwindows/presentwindows.cpp index 64026587..7a1d5f3d 100755 --- a/kwin/effects/presentwindows/presentwindows.cpp +++ b/kwin/effects/presentwindows/presentwindows.cpp @@ -732,7 +732,7 @@ void PresentWindowsEffect::grabbedKeyboardEvent(QKeyEvent *e) } break; case 0: - return; // HACK: Workaround for Qt bug on unbound keys (#178547) + return; // HACK: Workaround for unbound keys (#178547) default: if (!e->text().isEmpty()) { m_windowFilter.append(e->text());