24905 Commits (480f857d2942fb9808e7a653aa54b2b44d1efc8d)
 

Author SHA1 Message Date
Xaver Hugl 480f857d29 outputconfigurationstore: don't handle laptop lid closing yet
Interactions with KScreen cause settings to be reset to the default when the lid
gets closed, so handling lid closing in KWin needs to wait until KScreen no longer
writes configs

BUG: 471282
1 year ago
l10n daemon script b850e55953 GIT_SILENT Sync po/docbooks with svn 1 year ago
l10n daemon script af565b554c 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"
1 year ago
Nate Graham 3ca2870deb outputconfigurationstore: restore comment lost in migration from KScreen
This comment is important to explain the underlying reason *why* we have
different target DPIs for different device types.
1 year ago
Xaver Hugl 7872e7cb22 backends/drm: hardcode a list of known formats instead of querying egl for information on drm formats 1 year ago
Laurent Montel 7992813abc Remove unused import module (scripted) 1 year ago
Vlad Zahorodnii df8cb7df3c wayland: Make surface damage buffer local
This allows us to avoid losing precision when updating surface pixmaps.
Surface damage needs special handling either way.

Another advantage from switching to buffer damage is that it lets us to
decouple surface textures from surface items, which is useful for making
surface helpers more reusable.
1 year ago
Xaver Hugl d8e57f7886 backends/drm: improve multi gpu performance with NVidia as secondary GPU
With the Nvidia driver, linear textures are external_only, so additional
measures need to be taken to make the egl import path work

CCBUG: 452219
1 year ago
Vlad Zahorodnii 24bfca7959 Drop "Configure Window Manager" entry in user actions menu
Because the kcm list has to be maintained manually, it's prone to get
outdated and incomplete (it already is!). On the other hand, "configure
window manager" is somewhat redundant as same kcms can be opened in
system settings.
1 year ago
l10n daemon script a97d05585a GIT_SILENT Sync po/docbooks with svn 1 year ago
Vlad Zahorodnii 056177cf98 backends/drm: Remove unused includes 1 year ago
Vlad Zahorodnii 9af2eb0bfc backends/drm: Drop EglGbmBackend::{importBufferObjectAsImage,importBufferObjectAsTexture}
They're unused.
1 year ago
Vlad Zahorodnii d6a384627b autotests: Let drm test use host primary node to allocate buffers 1 year ago
Vlad Zahorodnii dc70be404a core: Provide own dumb graphics buffer allocator
If a gbm_bo is allocated with GBM_BO_USE_WRITE, it will be backed by a
dumb buffer under the hood. However, it seems like neither gbm_bo_get_fd()
nor gbm_bo_get_plane_fd() would return valid file descriptors, which are
required to fill in DmaBufAttributes.

As an interim solution, this change makes the GbmGraphicsBufferAllocator
allocate dumb buffers on its own rather than delegate it to gbm.
1 year ago
Vlad Zahorodnii e81fa52c76 backends/drm: Prefer egl import mode
The egl import mode ensures that there's a local buffer, which is
preferred as it minimizes the number of data transfers over PCIe.

With dmabuf, it's unclear what the driver will do. But the main takeaway
from discussion with mesa developers is that it's undesired for
gbm_bo_import() to migrate or perform data transfers behind the user's
back, it should be done explicitly.
1 year ago
Vlad Zahorodnii 082301920e backends/drm: Port to GraphicsBuffer
This change ports the drm backend to the GraphicsBuffer and
GraphicsBufferAllocator.

The main motivation is to unify graphics buffer abstractions across
various backends and to prepare it for output layers, which could be
nicer if we could have direct control over the buffers.
1 year ago
Vlad Zahorodnii 8fa6c5307b backends/drm: Reopen the drm node
GEM handles are not reference counted and are unique per drm file
descriptor.

With the upcoming changes, dmabuf and dumb buffers will be abstraced
using DmaBufAttributes.

The issue with it is that we need GEM handles to get a drm framebuffer.
drmPrimeFDToHandle() can be used to get the GEM handle for a drm file
descriptor, but we would hit the reference counting issues then and
potentially double close GEM handles.

In order to resolve that, this change makes the drm backend reopen the
drm node to get a new GEM handle namespace for rendering.
1 year ago
Vlad Zahorodnii 0a7bfcf1a3 backends: Remove concrete graphics buffer types 1 year ago
Vlad Zahorodnii ea639ad170 core: Add GraphicsBuffer map flags
This allows to specify whether the graphics buffer will be read or
written. It's mainly needed to map our APIs to gbm APIs.
1 year ago
Vlad Zahorodnii 9bbe0cc4ac core: Allow GbmGraphicsBufferAllocator allocate dumb buffers
The drm backend needs to allocate both dmabuf and dumb buffers, for
example for multi-gpu import.

Allowing GbmGraphicsBufferAllocator to allocate dumb buffers allows us
to avoid using several buffer allocators in the drm backend.
1 year ago
Vlad Zahorodnii 7782cb6853 core: Add GraphicsBufferOptions::software
The software flag indicates whether the graphics buffer allocator needs
to allocate a buffer suitable for software rendering. Its intended usage
is to allow the gbm allocator to allocate both dmabuf and dumb buffers.
1 year ago
Vlad Zahorodnii 1833d790f5 core: Introduce GraphicsBufferOptions
GraphicsBufferOptions describes the properties of the allocated graphics
buffer.
1 year ago
Vlad Zahorodnii bdc14f247e core: Allow allocating linear gbm buffers with implicit modifier 1 year ago
Vlad Zahorodnii f579b073c9 core: Change type of DmaBufAttributes::{pitch,offset}
Change it to uint32_t[] to match drmModeAddFB() API.
1 year ago
Vlad Zahorodnii b98f68d581 Use proper ellipsis in user actions menu
"…" is not same as "..."
1 year ago
l10n daemon script 754beff474 GIT_SILENT Sync po/docbooks with svn 1 year ago
l10n daemon script 9c90e04c3c 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"
1 year ago
l10n daemon script 130f42cbee GIT_SILENT Sync po/docbooks with svn 1 year ago
l10n daemon script 87ac5476d9 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"
1 year ago
David Edmundson c5a29b4b66 effects: Make OpenGL context current before deleting framebuffer
When we delete a window we unredirect, when we unredirect, we delete the
framebuffer which requires an openGL context.

handleWindowDeleted is the entry point from workspace events to effects
code, so it's made current here.

BUG: 444665
BUG: 471139
1 year ago
l10n daemon script f41d95fef1 GIT_SILENT Sync po/docbooks with svn 1 year ago
l10n daemon script cf2808c83a 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"
1 year ago
Laurent Montel ba3bfbf4be Port PlasmaCore.Theme/ColorScope/Units etc to Kirigami
see https://pointieststick.com/2023/06/14/call-to-action-easy-porting-opportunity-in-plasma/
1 year ago
Nate Graham ad4ce627ae plugins/overview: also do things when changing to active
We were binding to the statusChanged signal, but then only doing
anything if the status had changed to "Activating". This did not work
for when the effect was activated without a gesture, because then its
status would change straight to "Activated", bypassing the in-between
state of "Activating."

This fixes clearing the search text on activation without a gesture.
1 year ago
Vlad Zahorodnii 712fd3396c Sync EffectsHandler::windowAdded with Workspace::windowAdded
This change makes the EffectsHandler emit the windowAdded signal as soon
as the Workspace::windowAdded signal is received and minimize the
difference between the states observed in kwin core and effects.
1 year ago
Vlad Zahorodnii a43ffb8182 Advance window animations in prePaintWindow()
This will ensure that the window animation is advanced only if the
window is painted. I'd like to rely on this to allow effects schedule
animations as soon as Workspace::windowAdded signal is emitted.

As is, the issue with delaying EffectsHandler::windowAdded is that we
don't filter out all "not ready" windows, which breaks some effects
because EffectWindows are leaked in some properties but no
EffectsHandler::windowRemoved signal is emitted so those effects can
perform cleanup. Fixing that by the means of ensuring that only renderable
EffectWindows are exposed is hard too, and it would also mean that
effects need to use their own api, which I would like to avoid and port
the effects to kwin core apis instead.
1 year ago
l10n daemon script e8904819b7 GIT_SILENT Sync po/docbooks with svn 1 year ago
Aleix Pol Gonzalez 11e8b91cb0 Composite: Enforce KWIN_COMPOSE
Don't fall back into other composition systems if KWIN_COMPOSE is
explicitly set. In such case, just exit().

Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
1 year ago
Nicolas Fella 45ad400f41 plugins/aurorae: Set layout for config module
There is no layout by default, which causes a crash
1 year ago
Nicolas Fella 3415d6e0b3 plugins/aurorae: Fix config module 1 year ago
l10n daemon script 280bfa3172 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"
1 year ago
Xaver Hugl 4541501ccc get rid of some unnecessary const_casts 1 year ago
Severin von Wnuck dc4c463ca3 xwayland: Remove cursor definition
This is now handled by krdb.

BUG: 442839
BUG: 459468
1 year ago
Xaver Hugl debe76733c libkwineffects/kwinglutils: handle alpha better with colormanagement
Alpha from clients is encoded in electrical values, and some of our code also relies
on compositing results being encoded in electrical values. To take care of this, we
need to undo the premultiplication of rgb values, convert to or from linear, and then
re-do the premultiplication. This doesn't result in exactly the same blending behavior
with linear blending, but it's close enough
1 year ago
Xaver Hugl c112bb5c56 backends/drm: fix color management with sRGB output
We need to target the linear EOTF for rendering, even if the output EOTF
is sRGB
1 year ago
Nicolas Fella bc62760186 kcms/decoration: Use KCMultiDialog to open decoration kcms
Now that decoration configs are separate plugins we can plug those into KCMultiDialog instead of hand-rolling it ourselves

As a nice side-effect this should allow to implement the decoration config in QML

BUG: 470902
1 year ago
Vlad Zahorodnii 23f533aa52 autotests: Skip ScreencastingTest::testOutputCasting when running in ci
The test is flaky. We work around it by passing --repeat until-pass, but
lately even it doesn't help us with this issue.

So skip the test when running it inside KDE CI for a few months until
it gets a newer kernel.
1 year ago
l10n daemon script 1674b2b75b GIT_SILENT Sync po/docbooks with svn 1 year ago
Aleix Pol fbbaab3eaf kcm/decoration: Allow specifying the kcm separately from the decoration
It makes decorations lighter as they don't need to bundle its
configuration logic.
Deprecates the kcmodule property in favour of kcmoduleName which instead
of assuming that the kcm is local to the plugin, it provides the plugin
name to find and load.
1 year ago
l10n daemon script 381de13973 GIT_SILENT Sync po/docbooks with svn 1 year ago