From 6d6576f819322dbaf0be30a1b43e21079637aa4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Sun, 18 Feb 2018 18:04:39 +0100 Subject: [PATCH] [kcmkwin/rules] Disable detect button on Wayland Summary: The detect functionality is still extremely bound to X11 and results in a crash when clicked. Thus it's better to disable it completely in 5.12 on Wayland. Test Plan: Button disabled on Wayland, enabled on X11 Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #plasma Differential Revision: https://phabricator.kde.org/D10642 --- kcmkwin/kwinrules/ruleswidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kcmkwin/kwinrules/ruleswidget.cpp b/kcmkwin/kwinrules/ruleswidget.cpp index b6765da9a8..c10d66b4b1 100644 --- a/kcmkwin/kwinrules/ruleswidget.cpp +++ b/kcmkwin/kwinrules/ruleswidget.cpp @@ -56,6 +56,8 @@ RulesWidget::RulesWidget(QWidget* parent) { Q_UNUSED(parent); setupUi(this); + detect->setVisible(KWindowSystem::isPlatformX11()); + detection_delay->setVisible(KWindowSystem::isPlatformX11()); QRegularExpressionValidator* validator = new QRegularExpressionValidator(QRegularExpression("[0-9\\-+,xX:]*"), this); maxsize->setValidator(validator); minsize->setValidator(validator);