- 11 Sep, 2018 2 commits
-
-
Vlad Zahorodnii authored
Summary: The desktop file parser supports only QString, QStringList, Int, Double, and Bool. QUrl is not a supported type for some reason. Thus, let's use QString for X-KWin-Video-Url. Reviewers: #kwin, broulik Reviewed By: broulik Subscribers: Zren, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D15373
-
Roman Gilg authored
Summary: We currently only raise a client when a drag enters it and not activate it. This is confusing since afterwards the raised window has not keyboard focus although visually being in front of the window the drag originated from. Therefore activate entered windows instead of only raising them. Test Plan: Manually and autotests still pass. Reviewers: #kwin, hein Reviewed By: hein Subscribers: anthonyfieroni, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D15225
-
- 10 Sep, 2018 2 commits
-
-
Vlad Zahorodnii authored
Summary: Modification of undeclared variables is illegal in the strict mode, e.g. ```lang=js mainWindows = window.mainWindows(); ``` is illegal. Test Plan: The Dialog Parent effect works with both QScriptEngine and QJSEngine. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D15413
-
Vlad Zahorodnii authored
Summary: The x-coordinate of the area's left edge and y-coordinate of the area's top edge are adjusted by 1px leading to a gap between the frame and magnified area. Because area has type of QRect, we have to adjust only coordinates of the right and bottom edge by 1 px. Because QRectF::right() == QRectF::x() + QRectF::width(), we can use QRectF, which leads to more cleaner code because we don't need to do 1px adjustments. Test Plan: Before: {F6235388, layout=center, size=full} After: {F6235439, layout=center, size=full} Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: davidedmundson, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D15275
-
- 08 Sep, 2018 1 commit
-
-
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"
-
- 07 Sep, 2018 1 commit
-
-
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"
-
- 06 Sep, 2018 2 commits
-
-
Luca Beltrame authored
Build system changes can be potentially breaking and so must be reviewed prior to commit. In addition, there is no explanation for this change. Simon, you might want to submit your patches to Phabricator for review prior to landing them. CCMAIL: sdepiets@gmail.com This reverts commit 4f4f3295.
-
Simon Depiets authored
-
- 05 Sep, 2018 1 commit
-
-
Vlad Zahorodnii authored
Summary: With QOverload the code is slightly cleaner. Test Plan: Compiles. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D15300
-
- 04 Sep, 2018 1 commit
-
-
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"
-
- 03 Sep, 2018 2 commits
-
-
Jonathan Esk-Riddell authored
QT_MIN_VERSIONS is Qt 5.11 for Plasma 5.14. Agreed at kickoff meeting. Set everywhere for clearity and consistency.
-
Roman Gilg authored
Summary: Internal KWin windows might be not in sync with their PlasmaShellSurface. This could be a problem in general, but for now atleast guard against invalid setPosition requests. BUG: 386304 Test Plan: Manually Reviewers: #kwin, davidedmundson Subscribers: davidedmundson, ngraham, graesslin, kwin Tags: #kwin Maniphest Tasks: T8771 Differential Revision: https://phabricator.kde.org/D13084
-
- 02 Sep, 2018 1 commit
-
-
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"
-
- 31 Aug, 2018 9 commits
-
-
Vlad Zahorodnii authored
Summary: * effects.h includes client.h and forward declares Client, both at the same time. Thus, delete the include; * the blur effect includes effects.h. That, most likely, is a leftover after 3f5bf65a. Test Plan: Compiles. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D15191
-
Andrius Štikonas authored
-
Vlad Zahorodnii authored
Summary: If the corner shadow tiles(top-left, top-right, and so on) tiles are missing, then the left/top/right/bottom shadow tiles will overlap. This diff addresses that problem by changing how the shadow texture atlas is rendered: * corner tiles will be drawn in the corners of the atlas(buildQuads method expects them to be at the corners); * top, right, bottom, and left tile will be aligned to the top-left corner of the inner shadow rect. For majority of desktop themes, the shadow texture atlas looks the same. For example, here's for Aether: Before: {F6190484, layout=center, size=full} After: {F6190488, layout=center, size=full} Depends on D14783 Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: davidedmundson, abetts, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D14784
-
Vlad Zahorodnii authored
Summary: Current implementation of buildQuads assumes that corner shadow tiles are always present: const QRectF leftRect( topLeftRect.bottomLeft(), bottomLeftRect.topRight()); but that assumption is wrong. For example, if the default panel is on the bottom screen edge, then the calendar popup won't have the bottom-left shadow tile(at least on Wayland). Which means that the left shadow tile won't be visible because topLeftRect.left() == bottomLeftRect.right(). Corner rectangles only have to influence height of the left/right tile and width of the top/bottom tile. Width of the left/right tile and height of the top/bottom tile should not be controlled by corner tiles. Overall, this is how shadow quads are computed: * Compute the outer rectangle; * Compute target rectangle for each corner tile. If some corner tile is missing, move the target rectangle to the corresponding corner of the inner shadow rect and set its width and height to 0. We need to do that to prevent top/right/bottom/left tiles from spanning over corners: {F6190219, layout=center, size=full} We would rather prefer something like this if the top-left tile is missing: {F6190233, layout=center, size=full} * Fix overlaps between corner tiles; * Compute target rectangles for top, right, bottom, and left tiles; * Fix overlaps between left/right and top/bottom shadow tiles. Test Plan: * Ran tests; * Resized Konsole to its minimimum size(on X11 and Wayland); * Opened the calendar popup(on X11 and Wayland): Before: {F6190344, layout=center, size=full} After: {F6190346, layout=center, size=full} Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: abetts, davidedmundson, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D14783
-
Roman Gilg authored
Summary: At least one test requires the physical size to be set. Test Plan: Lock screen screen edges test is passing again. Without the change the corner offset in the ScreenEdges class is not calculated correctly via the physicalDpiX() and physicalDpiY() values of an auxilliary QWidget. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: davidedmundson, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D15183
-
Roman Gilg authored
Summary: With the new Output class we can set the gamma directly here. This is also a stepping stone to adjust individual output gamma adjustment later on. This means any future backend, which aims to support the color correction frontend needs to use the Output class. Test Plan: Night Color test still passes. Reviewers: #kwin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D11803
-
Roman Gilg authored
Summary: Let VirtualOutput be a child class of the new generic class Output. This allows code sharing and a very similar behavior of the Virtual backend in comparision to the Drm backend. Test Plan: Autotests succesful with two exceptions: The decoration input test fails on testDoubleTap, row topLeft. This is to be expected because now the ScreenEdgeInputFilter captures the event at position (0,0) before the DecorationEventFilter can capture it. The autotest was adapted to take this special case into account. Also the lockscreen test fails, because the virtual output is currently missing the physical size yet. Reviewers: #kwin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D11789
-
Roman Gilg authored
Summary: Lift high-level properties into new Screens child class for platform plugins using the Output class. Directly make DrmScreens a child class of OutputScreens. Test Plan: Manually and auto tests with 94%. Reviewers: #kwin Differential Revision: https://phabricator.kde.org/D11782
-
Roman Gilg authored
Summary: In order to separate high-level properties of individual outputs from hardware-specific ones and access these, introduce a new generic class Output. Also make the DrmOutput class directly a child class of this generic class. The long-term goal is to get rid of the Screens global object on Wayland and instead directly work with Output objects on compositing level. This should enable us long-term to do direct scanout to hardware planes, what I predict needs this generic output representation at one point. Test Plan: Manually. Reviewers: #kwin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D11781
-
- 30 Aug, 2018 8 commits
-
-
David Edmundson authored
Test Plan: Won't make a practical difference, anything that used before would have crashed. Only now it's tidier. Unit tests still pass Reviewers: #kwin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D15171
-
David Edmundson authored
Summary: In loading tests. Effects are deleted in a deleteLater potentially outside the scope of our test. Our MockEffectsHandler (which contains the global static "effects") has the lifespan of the test. Fixes failing unit test. Test Plan: Ran test Reviewers: #kwin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D15167
-
Kai Uwe Broulik authored
-
Kai Uwe Broulik authored
-
Kai Uwe Broulik authored
Otherwise we call i18n without a QCoreApplication Differential Revision: https://phabricator.kde.org/D15163 (cherry picked from commit 0fd93942)
-
Summary: While BuiltInEffects has effectData() function, many functions repeat s_effectData.at(index(effect)), which is what effectData() is doing. By using effectData(), we'll get rid of those repetitions and maybe make easier transition to other underlying data structure that stores metadata for builtin effects. Test Plan: Compiles, all enabled builtin effects are loaded and working. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D13587 (cherry picked from commit 7bfaa6e9)
-
Kai Uwe Broulik authored
Otherwise we call i18n without a QCoreApplication Differential Revision: https://phabricator.kde.org/D15163
-
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"
-
- 29 Aug, 2018 1 commit
-
-
Yuri Chornoivan authored
-
- 27 Aug, 2018 3 commits
-
-
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"
-
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"
-
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"
-
- 26 Aug, 2018 3 commits
-
-
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"
-
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"
-
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"
-
- 25 Aug, 2018 1 commit
-
-
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"
-
- 22 Aug, 2018 1 commit
-
-
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"
-
- 21 Aug, 2018 1 commit
-
-
Vlad Zahorodnii authored
Summary: The Dim Inactive effect sees the world a little bit differently. m_activeWindow is currently active window that can be dimmed later on. In most cases, it's the same as effects->activeWindow(). In rare cases, it can be nullptr, even when effects->activeWindow() is not equal to nullptr (e.g. when active window is a context menu popup). canDimWindow is a helper that returns true if a given window should be dimmed, otherwise it returns false. It has one special case: if a given window is equal to m_activeWindow, return false. I.e. don't dim active windows. Currently, if user changes config of this effect, active window becomes dimmed. The reason for that is we hit that special case when deciding whether effects->activeWindow() should be m_activeWindow. This change addresses that problem by resetting m_activeWindow so we don't hit that special case. Test Plan: * Opened KCM of this effect; * Changed strength; * (the KCM window stayed bright after I clicked "Apply" button). (everything else works as expected) Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D14973
-