Commit graph

25022 commits

Author SHA1 Message Date
Vlad Zahorodnii
147b862d7f core: Add GraphicsBufferRef
It's a helper to make GraphicsBuffer refcounting less error prone.
2023-07-11 11:55:53 +00:00
Xaver Hugl
d6c29e2688 backends/drm: fix handling of implicit modifiers 2023-07-11 10:32:41 +00:00
l10n daemon script
0155ede2a5 GIT_SILENT Sync po/docbooks with svn 2023-07-11 02:23:46 +00:00
Xaver Hugl
ccc73d7ef0 backends/drm: fix multi gpu with NVidia as primary
NVidia GPUs can't render to linear buffers, so we can't force a linear modifier
for CPU rendering. The proprietary NVidia driver also can't map gbm buffers
with all formats and modifiers, so instead of mapping the gbm buffer, this
patch changes KWin to instead use glReadPixels for accessing the source
buffer
2023-07-10 13:19:42 +00:00
David Edmundson
0fa0ffd212 screencast: Don't pass modifierFlags to buildFormat when we're not using modifiers
The modifier flags are ignored if we're not setting modifiers. This
won't result in a behaviour change, it's a readability cleanup.
2023-07-10 06:49:45 +00:00
l10n daemon script
d215dac888 GIT_SILENT Sync po/docbooks with svn 2023-07-10 02:31:41 +00:00
l10n daemon script
35fa28dad4 GIT_SILENT Sync po/docbooks with svn 2023-07-08 02:52:42 +00:00
Marco Martin
7244239f05 Port away from PlasmaCore.ColorScope and Plasma.Theme
Now only Kirigami.Theme and Kirigami.Units are used. In plasmoids Kirigami.Theme will take the colors form the plasma theme
2023-07-07 09:15:32 +00:00
l10n daemon script
4d5d88abef GIT_SILENT Sync po/docbooks with svn 2023-07-07 02:26:35 +00:00
l10n daemon script
5ff033e323 GIT_SILENT Sync po/docbooks with svn 2023-07-06 03:16:59 +00:00
Andrew Shark
46807b1a72 effects/mousemark: Add ability to configure modifiers buttons for drawing
Hard-coded modifiers Shift+Meta may interfere with some other actions.

FEATURE: 337043
2023-07-05 12:25:43 +00:00
Vlad Zahorodnii
665e05d711 plugins/qpa: Simplify backing store buffer handling
The main reasoning behind double buffering was to avoid InternalWindow's
copy of m_frontBuffer detaching. But it already detaches when the qpa
calls blitImage(). So remove double buffering to simplify the backing
store.
2023-07-05 09:17:14 +00:00
Vlad Zahorodnii
fc02990b77 core: Hide GraphicsBuffer implementations
The user code should not rely on concrete GraphicsBuffer
implementations, but instead of generic abstractions.
2023-07-05 11:14:12 +03:00
Vlad Zahorodnii
c31f5822fd wayland: Drop SurfaceInterface::bufferScale property
There are no usages for it anymore. We may need another property to
specify the source box in the buffer in the future though.
2023-07-05 05:25:19 +00:00
l10n daemon script
25dc2cefec GIT_SILENT Sync po/docbooks with svn 2023-07-05 03:19:26 +00:00
Xaver Hugl
e698cafa27 backends/drm: handle mismatching stride with CPU copying
BUG: 471517
2023-07-04 17:33:38 +02:00
Xaver Hugl
457f966bf1 core/graphicsbuffer: correct stride handling with buffer mappings
The stride of the mapping is not necessarily the same as the stride of the
underlying buffer
2023-07-04 17:33:38 +02:00
Xaver Hugl
3cc238f85f plugins/backgroundcontrast: fix transformations
While the GLFramebuffer::blitFromRenderTarget helper un-applies the transformations
the rendertarget has, the effect is not written with that in mind. In order to keep
it working properly, blit without any transformations and only adjust the coordinate
system difference between texture and fbo
2023-07-04 15:00:10 +00:00
Daniel Lipovetsky
b31baaf0cd tabbox: Show window switcher only when there are two or more windows
Previously, we showed the window switcher even if there was only one
window, or no windows.

Now, we show the window switcher only if there are two or more windows.
Note that "desktop" counts as a window when the switcher's "show desktop
mode" is enabled.

BUG: 370396
BUG: 419408
2023-07-04 13:38:30 +00:00
Daniel Lipovetsky
a02f09250d tabbox: Add desktop window to client list only if "show desktop mode" enabled
Previously, we always added the desktop to the client list when the list
was empty. We added it even if the switcher's "show desktop mode" was
disabled.

Now, we only add the desktop to the client list if the switcher's "show
desktop mode" is enabled.
2023-07-04 13:38:30 +00:00
Laurent Montel
86c6238cfa Don't use QtTest => use QTest + missing include 2023-07-04 10:38:21 +00:00
Aleix Pol Gonzalez
49a76ea772 Install KWaylandServer headers
There are use cases for the headers to be used, e.g. when implementing
wayland-specific workflows from an Effect.
In order to be able to use these, we also need to expose libkwin to be
imported as it carries the interfaces' symbols.

Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
2023-07-04 08:22:43 +00:00
Aleix Pol Gonzalez
6fd1867681 Drop options.h include
Don't include options.h from renderloop.h. This way it can be included
from outside the project without dragging all of the KWin dependencies.
2023-07-04 08:22:43 +00:00
l10n daemon script
aec482cbe8 GIT_SILENT Sync po/docbooks with svn 2023-07-04 03:47:08 +00:00
l10n daemon script
a529de21dc GIT_SILENT Sync po/docbooks with svn 2023-07-03 02:49:02 +00:00
l10n daemon script
c4d99d0193 GIT_SILENT Sync po/docbooks with svn 2023-07-02 02:56:03 +00:00
l10n daemon script
7e717beb91 SVN_SILENT made messages (.desktop file) - always resolve ours
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"
2023-07-02 02:52:22 +00:00
Vlad Zahorodnii
88ade3a409 Extract reusable egl swapchain bits
EGL rendering has some duplicated bits, so this change extracts
them to reduce code duplication.
2023-07-01 12:22:28 +00:00
Vlad Zahorodnii
3bd5e91226 Extract reusable qpainter swapchain bits
QPainter rendering has some duplicated bits, so this change extracts
them to reduce code duplication.
2023-07-01 12:22:28 +00:00
Vlad Zahorodnii
80a3fea9f8 core: Allow mapping shared memory graphics buffer
Shared memory graphics buffers can be mapped, so implement
GraphicsBuffer::map() and GraphicsBuffer::unmap().
2023-07-01 12:22:28 +00:00
David Edmundson
d8029e461e x11: Sync frame extents in X11 native pixels
Frame extents are written out over the wire they should be in X11 native
pixels.

i.e if we are using 200% scaling, and have X11 clients scale themselves
then from the point of view of the client reading the properties the
window decorations are twice the size as normal.

BUG: 471132
2023-07-01 12:48:26 +01:00
David Edmundson
ad2f78f627 screencast: Drop unused headers 2023-07-01 12:47:55 +01:00
David Edmundson
b1e6deee3f screencast: Convert event handlers into methods
ScreencastStream is a C++ class, but we're having C style event handling
as static functions within the class. Mixing two styles within a class
isn't very clear.

We can turn them into normal methods with some thin wrapper functions
round the event handling.
2023-07-01 12:47:55 +01:00
David Edmundson
5ef0b775ef screencast: Use consistent prefix for member variables 2023-07-01 12:47:55 +01:00
David Edmundson
ced95f536c Adapt offscreenquickview to Qt6 changes
Qt6 documentation states:

"Note: When using this window in combination with QQuickRenderControl,
the result of this function is an empty image, unless the software
backend is in use. "

We support a mode of using openGL rendering but then exporting as pixmap
images for Aurorae. In this case we should simply grab data from our
FBO.

BUG: 471041
2023-07-01 12:47:32 +01:00
David Edmundson
e93adbee07 xwayland: Guard against xwyayland connection closing in input spy
The event spy is removed when xwayland closed, but it's based on the
process not the wayland socket, so it can be temporarily out of sync.

There were no guards for the connection being null.

BUG: 471789
2023-07-01 12:47:17 +01:00
Mike Noe
f09f5c608d Fix reference errors, port to Kirigami
Fix reference errors in qml/Outline and plugins/OutputLabel
2023-07-01 07:19:26 +00:00
l10n daemon script
8ea47b4c62 GIT_SILENT Sync po/docbooks with svn 2023-07-01 02:25:18 +00:00
Vlad Zahorodnii
e1980c0009 cmake: Search for KF6Service
KF6Plasma no longer pulls it.
2023-06-30 11:45:47 +01:00
l10n daemon script
8f124f5ebb GIT_SILENT Sync po/docbooks with svn 2023-06-30 02:28:34 +00:00
l10n daemon script
b692a53e9c GIT_SILENT Sync po/docbooks with svn 2023-06-29 02:25:40 +00:00
l10n daemon script
4ad342aedf SVN_SILENT made messages (.desktop file) - always resolve ours
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"
2023-06-29 02:22:26 +00:00
l10n daemon script
6ed2b33d62 GIT_SILENT Sync po/docbooks with svn 2023-06-28 02:29:30 +00:00
Xaver Hugl
e55c9e924e platformsupport/egldisplay: fix external_only filtering for implicit modifiers 2023-06-27 21:26:14 +02:00
ivan tkachenko
b270ff92ae
kcms/scripts: Relax Kirigami import version
Needed to make DisplayHint type available, which is registered as 2.14.

Amends 899bef4126
2023-06-27 20:24:04 +03:00
ivan tkachenko
899bef4126
kcms/scripts: Set text of Delete action correctly
Fixes missing text on the menu item in ActionToolBar's menu.
2023-06-27 18:43:29 +03:00
Laurent Montel
c7ccf91d92 We use Qt6/kf6 only 2023-06-27 04:45:01 +00:00
l10n daemon script
b23d707e0c GIT_SILENT Sync po/docbooks with svn 2023-06-26 02:30:08 +00:00
l10n daemon script
edcd52dd9f GIT_SILENT Sync po/docbooks with svn 2023-06-25 02:53:10 +00:00
David Edmundson
b22e58846a contrast: Improve performance
glCopyTexSubImage2D is super slow on Intel GPUs on wayland.

We have an existing method to read from the framebuffer that is used in
the blur and other effects.

Rather than creating a scratch framebuffer every frame we keep a cache
per window for the lifespan of the effect.

BUG: 469151
2023-06-24 07:54:34 +00:00