- 19 Sep, 2019 4 commits
-
-
Vlad Zahorodnii authored
Summary: Because KWin is a very old project, we use three kinds of null pointer literals: 0, NULL, and nullptr. Since C++11, it's recommended to use nullptr keyword. This change converts all usages of 0 and NULL literal to nullptr. Even though it breaks git history, we need to do it in order to have consistent code as well to ease code reviews (it's very tempting for some people to add unrelated changes to their patches, e.g. converting NULL to nullptr). Test Plan: Compiles. Reviewers: #kwin, davidedmundson, romangg Reviewed By: #kwin, davidedmundson, romangg Subscribers: romangg, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23618
-
Bhushan Shah authored
Summary: In some environemnts it is possible that udev detection of primary GPU fails and it picks the first available card (normally card0). But it is not desired, and it would be required to use different card (card1). Introduce environment variable, which when used, will make it possible to use different card node then one selected by udev. You can use it like KWIN_DRM_DEVICE_NODE=/dev/dri/card1 kwin_wayland Test Plan: Tested on the device where card0 was not usable for kms, but card1 Reviewers: #kwin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D24051
-
Jonathan Riddell authored
GIT_SILENT
-
Script Kiddy authored
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
-
- 18 Sep, 2019 6 commits
-
-
Anton Smerkov authored
Summary: MinimizeAll should work as follows: > As long as there's something to minimize, do that. > Otherwise unminimize only the windows we minimized > on last invocation. Quote above is from Comment 11 by Thomas Lübking of BUG: 356161. But current code does not fulfill these duties. Try next case: run minimizeall on some windows, then click on one of windows, then run minimizeall again. All windows would be unminimized! I have tried to make small changes to original code of main.js, but i can't because i don't understand it. Thats why i wrote my own version. Then i changed my version to version of zzag, because his code is more simple. I have tested both versions. BUG: 356161 Reviewers: colomar, #kwin, zzag Reviewed By: #kwin, zzag Subscribers: romangg, zzag, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D24044
-
Vlad Zahorodnii authored
Test Plan: Compiles. Reviewers: #kwin, apol Reviewed By: apol Subscribers: apol, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D24045
-
Vlad Zahorodnii authored
Summary: qVariantFromValue is deprecated since Qt 5.14. It's advised to use QVariant::fromValue instead. Test Plan: Compiles. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D24042
-
Vlad Zahorodnii authored
Unfortunately linking can be very fragile so let's not break things.
-
Christophe Giboudeaux authored
-
Script Kiddy authored
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
-
- 17 Sep, 2019 3 commits
-
-
Vlad Zahorodnii authored
We have lots of inconsistency at the moment in CMakeLists.txt files. Most of it is due to kwin being a very old project. This change hopefully fixes all of it.
-
Vlad Zahorodnii authored
Summary: Currently component names and filenames are partially sorted. This makes adding new items and finding existing items more difficult. Test Plan: Compiles. Reviewers: #kwin, gladhorn Reviewed By: #kwin, gladhorn Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D24018
-
Script Kiddy authored
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
-
- 16 Sep, 2019 7 commits
-
-
Vlad Zahorodnii authored
-
Vlad Zahorodnii authored
Summary: So far some placement policies were handling special case when area is a null rectangle. However, there is no good reason to do that. We can just pass a valid area rectangle and remove pointless checkArea helper. Doing so will make the code simpler and more comprehensible. Reviewers: #kwin, gladhorn Reviewed By: #kwin, gladhorn Subscribers: gladhorn, romangg, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23923
-
Vlad Zahorodnii authored
Summary: We have to provide placement area for the screen on which the client is. Reviewers: #kwin, romangg Reviewed By: #kwin, romangg Subscribers: romangg, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23921
-
Vlad Zahorodnii authored
-
Yunhe Guo authored
Summary: Enable AA_UseHighDpiPixmaps application attribute Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23987
-
Roman Gilg authored
Summary: With nearest filter fractional scaling is blurry, always use linear filter instead on Wayland. Test Plan: Run Plasma session with patch and scale factor 1.9. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Maniphest Tasks: T10481 Differential Revision: https://phabricator.kde.org/D23986
-
Script Kiddy authored
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
-
- 15 Sep, 2019 2 commits
-
-
Björn Feber authored
Summary: {F7358009} Test Plan: Hover over the {nav Desktop Effects} KCM in the system settings sidebar. Reviewers: #kwin, #plasma, #vdg, zzag Reviewed By: #kwin, #plasma, zzag Subscribers: #vdg, #plasma, kwin, #kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23978
-
Carl Schwan authored
Summary: Error was: ``` /home/carl/kdesrc/kde/workspace/kwin/plugins/platforms/x11/windowed/x11windowed_output.cpp: In member function ‘void KWin::X11WindowedOutput::initXInputForWindow()’: /home/carl/kdesrc/kde/workspace/kwin/plugins/platforms/x11/windowed/x11windowed_output.cpp:134:14: error: invalid use of non-static member function ‘xcb_window_t KWin::X11WindowedOutput::window() const’ 134 | Q_UNUSED(window) | ^~~~~~ In file included from /home/carl/kdesrc/kde/workspace/kwin/plugins/platforms/x11/windowed/x11windowed_output.cpp:20: /home/carl/kdesrc/kde/workspace/kwin/plugins/platforms/x11/windowed/x11windowed_output.h:50:18: note: declared here 50 | xcb_window_t window() const { | ``` Reviewers: #kwin, romangg Reviewed By: #kwin, romangg Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23957
-
- 14 Sep, 2019 6 commits
-
-
Vlad Zahorodnii authored
Summary: clang-tidy has a check that converts all usages of null pointer literals to nullptr keyword. However, there's a small issue related to QFlags<T>. Apparently, QFlags<T> has a constructor that takes a pointer and if you pass 0 to it, clang-tidy will replace 0 with nullptr, e.g. NET::States(0) -> NET::States(nullptr) Even though passing nullptr is totally correct, it looks very weird. Test Plan: Complies. Reviewers: #kwin, gladhorn Reviewed By: #kwin, gladhorn Subscribers: gladhorn, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23948
-
Vlad Zahorodnii authored
Summary: We repeat quite a lot of code that finds an output by xcb_window_t and translates global X11 screen coordinates to output coordinates. Test Plan: Compiles. Reviewers: #kwin, gladhorn Reviewed By: #kwin, gladhorn Subscribers: gladhorn, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23947
-
Frederik Gladhorn authored
Summary: This has been commented out since 2014, I doubt it will come back. This is a big amount of code, maintenance will be easier without it. Reviewers: #kwin, zzag Reviewed By: #kwin, zzag Subscribers: romangg, graesslin, kwin Tags: #kwin, #documentation Differential Revision: https://phabricator.kde.org/D23069
-
Frederik Gladhorn authored
Summary: Revision 9a59e3fb removed the ghns button, but did not remove the corresponding entry in the tab focus chain. Reviewers: #kwin, ngraham, zzag Reviewed By: #kwin, zzag Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23936
-
Frederik Gladhorn authored
-
Script Kiddy authored
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
-
- 13 Sep, 2019 2 commits
-
-
Vlad Zahorodnii authored
Summary: m_currentTemp can be equal to targetTemp when resetSlowUpdateTimer is called. resetSlowUpdateTimer doesn't handle that case, which results in an FP exception being raised: ==20103==ERROR: AddressSanitizer: FPE on unknown address 0x7f40857d5ca6 (pc 0x7f40857d5ca6 bp 0x7ffccd95c330 sp 0x7ffccd95c220 T0) #0 0x7f40857d5ca5 in KWin::ColorCorrect::Manager::resetSlowUpdateTimer() /home/jenkins/workspace/Plasma/kwin/kf5-qt5 SUSEQt5.12/colorcorrection/manager.cpp:417 #1 0x7f40857d521d in KWin::ColorCorrect::Manager::resetSlowUpdateStartTimer() /home/jenkins/workspace/Plasma/kwin/kf5-qt5 SUSEQt5.12/colorcorrection/manager.cpp:388 #2 0x7f40857d42d5 in KWin::ColorCorrect::Manager::resetQuickAdjustTimer() /home/jenkins/workspace/Plasma/kwin/kf5-qt5 SUSEQt5.12/colorcorrection/manager.cpp:324 #3 0x7f40857d3ac1 in KWin::ColorCorrect::Manager::resetAllTimers() /home/jenkins/workspace/Plasma/kwin/kf5-qt5 SUSEQt5.12/colorcorrection/manager.cpp:286 #4 0x7f40857d0311 in KWin::ColorCorrect::Manager::hardReset() /home/jenkins/workspace/Plasma/kwin/kf5-qt5 SUSEQt5.12/colorcorrection/manager.cpp:152 #5 0x7f40857d038d in KWin::ColorCorrect::Manager::reparseConfigAndReset() /home/jenkins/workspace/Plasma/kwin/kf5-qt5 SUSEQt5.12/colorcorrection/manager.cpp:159 #6 0x420e75 in ColorCorrectNightColorTest::testConfigRead() /home/jenkins/workspace/Plasma/kwin/kf5-qt5 SUSEQt5.12/autotests/integration/colorcorrect_nightcolor_test.cpp:126 #7 0x4326b4 in ColorCorrectNightColorTest::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/jenkins/workspace/Plasma/kwin/kf5-qt5 SUSEQt5.12/build/autotests/integration/testColorCorrectNightColor_waylandonly_autogen/include/colorcorrect_nightcolor_test.moc:98 #8 0x7f407a80a94a in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const (/usr/lib64/libQt5Core.so.5+0x29694a) #9 0x7f40840a8962 (/usr/lib64/libQt5Test.so.5+0x19962) #10 0x7f40840a9352 (/usr/lib64/libQt5Test.so.5+0x1a352) #11 0x7f40840a9910 (/usr/lib64/libQt5Test.so.5+0x1a910) #12 0x7f40840a9cda in QTest::qRun() (/usr/lib64/libQt5Test.so.5+0x1acda) #13 0x7f40840a9edb in QTest::qExec(QObject*, int, char**) (/usr/lib64/libQt5Test.so.5+0x1aedb) #14 0x432428 in main /home/jenkins/workspace/Plasma/kwin/kf5-qt5 SUSEQt5.12/autotests/integration/colorcorrect_nightcolor_test.cpp:338 #15 0x7f407a095bca in __libc_start_main (/lib64/libc.so.6+0x26bca) #16 0x413ea9 in _start (/home/jenkins/workspace/Plasma/kwin/kf5-qt5 SUSEQt5.12/build/bin/testColorCorrectNightColor_waylandonly+0x413ea9) Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23914
-
Script Kiddy authored
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
-
- 12 Sep, 2019 7 commits
-
-
Vlad Zahorodnii authored
-
Nate Graham authored
-
Björn Feber authored
Summary: {F7344129} Test Plan: Open the {nav Desktop Effects} KCM. Reviewers: #kwin, #plasma, #vdg, davidedmundson, ngraham Reviewed By: #kwin, #plasma, #vdg, davidedmundson, ngraham Subscribers: ngraham, kwin, #vdg, #plasma, #kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23913
-
Vlad Zahorodnii authored
-
Vlad Zahorodnii authored
-
Vlad Zahorodnii authored
-
Script Kiddy authored
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
-
- 11 Sep, 2019 3 commits
-
-
Vlad Zahorodnii authored
-
Vlad Zahorodnii authored
QImage::sizeInBytes() was introduced in Qt 5.10.
-
Laurent Montel authored
-