In the late Plasma 5 times we agreed that it would be better to drop "active mouse screen" option and stick with last interacted screen approach instead. However, it was forgotten and nobody has pursued this goal, so let's hide the option in the system settings ui at least. The option is not completely removed because some parts of kwin would need adjustments.wilder/Plasma/6.2
parent
8f7f97148c
commit
e7d6e8b217
6 changed files with 35 additions and 15 deletions
@ -0,0 +1,26 @@ |
||||
/*
|
||||
SPDX-FileCopyrightText: 2024 Vlad Zahorodnii <vlad.zahorodnii@kde.org> |
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later |
||||
*/ |
||||
|
||||
#include <KConfigGroup> |
||||
#include <KSharedConfig> |
||||
|
||||
int main() |
||||
{ |
||||
auto config = KSharedConfig::openConfig(QStringLiteral("kwinrc")); |
||||
|
||||
KConfigGroup windows = config->group(QStringLiteral("Windows")); |
||||
if (!windows.exists()) { |
||||
return EXIT_SUCCESS; |
||||
} |
||||
|
||||
if (!windows.hasKey(QStringLiteral("ActiveMouseScreen"))) { |
||||
return EXIT_SUCCESS; |
||||
} |
||||
|
||||
windows.deleteEntry(QStringLiteral("ActiveMouseScreen")); |
||||
|
||||
return windows.sync() ? EXIT_SUCCESS : EXIT_FAILURE; |
||||
} |
||||
Loading…
Reference in new issue