Commit graph

24857 commits

Author SHA1 Message Date
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.
2023-06-13 12:20:21 +02:00
l10n daemon script
381de13973 GIT_SILENT Sync po/docbooks with svn 2023-06-13 02:29:26 +00:00
Vlad Zahorodnii
b9da04bf45 libkwineffects: Make OffscreenEffect render window with its output's scale
Render the window at its output's scale to make the window less blurry.

BUG: 470607
2023-06-12 16:09:51 +00:00
Vlad Zahorodnii
984af8f4f2 x11: Prevent handling some override-redirect window properties
It appears PyCharm can change WM_HINTS propery of override-redirect
windows when they are closed, which triggers a crash in kwin.

This change adds the corresponding guard. In addition to the icons, it
adds a few more guards to prevent kwin crashing when a rogue client sets
wrong properties on an override redirect window.

BUG: 470874
2023-06-12 09:58:16 +00:00
l10n daemon script
73fac19d2a GIT_SILENT Sync po/docbooks with svn 2023-06-12 02:56:58 +00:00
Ismael Asensio
c34bae007d kcms/rules: Add missing KCM namespace qualifier
There was a missing `KCM.` qualifier to `ContextHelpButton`
preventing the component to load

ammends 784f36affa

BUG: 470906
FIXED-IN: 6
2023-06-11 15:44:49 +02:00
l10n daemon script
a61ae0b07e GIT_SILENT Sync po/docbooks with svn 2023-06-11 02:31:00 +00:00
Alexander Lohnau
d251f3011c Remove unneeded QVariantList from KCM constructor args
The args are not needed and will be removed later in KF6
2023-06-10 06:50:27 +02:00
Aleix Pol
0a7db79e7c overview: Do not trigger the toggle action twice
It's already connected as it's created by EffectTogglableState.

BUG: 470603
2023-06-10 02:36:23 +02:00
Nate Graham
80b7ed62da kcms/scripts: fix namespacing to make it load again
BUG: 470781
2023-06-09 08:42:05 -06:00
Matthias Dahl
56f6bab0c3 scene: Pad damage if scale factor is fractional
Floating point arithmetic and/or the use of GL_LINEAR in the pipeline,
may result in visual glitches due to rounding (errors). As a short-term
fix until a proper (more involved) solution is in place for Plasma 6,
pad the damage slightly in all directions to alleviate those effects.
2023-06-09 15:05:06 +02:00
l10n daemon script
9ac6f71662 GIT_SILENT Sync po/docbooks with svn 2023-06-09 02:36:33 +00:00
Vlad Zahorodnii
6f3cb932df wayland: Rewrite wl-shm implementation
The main motivation for the rewrite is to properly port ShmClientBuffer
to our GraphicsBuffer abstractions. As is, libwayland implementation is
not suitable for our needs. We may need ShmClientBuffer to be alive when
its corresponding wl_shm_buffer resource is destroyed, for example to
play a window closing animation. With the existing api, we need to fight
libwayland. Besides that, libwayland doesn't provide a way to get
underlying pool file descriptor, which is needed to fill ShmAttributes.
2023-06-08 06:22:46 +00:00
Vlad Zahorodnii
f1d6366d4a core: Introduce GraphicsBufferView
GraphicsBufferView provides a way to map the contents of a graphics
buffer as an image.
2023-06-08 06:22:46 +00:00
l10n daemon script
592948e5ab GIT_SILENT Sync po/docbooks with svn 2023-06-08 02:34:31 +00:00
l10n daemon script
d75149c7b1 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-08 02:29:50 +00:00
l10n daemon script
f4d88e79f7 GIT_SILENT Sync po/docbooks with svn 2023-06-07 02:43:51 +00:00
l10n daemon script
7349ba41f9 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-07 02:37:32 +00:00
Alexander Lohnau
784f36affa kcms: Port to kcmutils_add_qml_kcm and org.kde.config QML module
kcmutils_add_qml_kcm creates a QRC that contains the "ui" folder.
This this simplifies the installation of KCMs, because all needed files
are bundled with the plugin.
In KCMUtils this means we can get rid of KPackage.

The new org.kde.kcmutils QML module also contains the org.kde.kcm
components that were previously part of KDeclarative.

Depends on https://invent.kde.org/frameworks/kcmutils/-/merge_requests/146
2023-06-06 20:32:02 +02:00
Vlad Zahorodnii
eea8200479 scene: Don't hide closed windows
If a closed window is kept alive, it means that somebody needs to
animate it and therefore it should be visible. Otherwise the window
would be destroyed and its item would be removed from the scene.

This change makes the WindowItem not change its visibility if the
associated window is closed. If the window had been invisible before
it was closed, the item would be invisible; if the window had been
visible before it was closed, the item would be visible.
2023-06-06 14:13:57 +00:00
Vlad Zahorodnii
b90ae2f8fc Move window hiding logic to Window
The window hiding logic is mostly the same both in X11 and Wayland
windows, so let's move it in Window to share the same code.
2023-06-06 13:58:44 +00:00
l10n daemon script
47a9504d40 GIT_SILENT Sync po/docbooks with svn 2023-06-06 02:28:56 +00:00
ivan tkachenko
888b9bb5a6
kcms/effects: Add myself to copyright header
Seems fair, since I refactored those UI files recently.
2023-06-05 12:19:16 +03:00
ivan tkachenko
f183a3f467
kcms/effects: Fix license headers
Project description isn't present anymore in other files.
2023-06-05 12:19:15 +03:00
ivan tkachenko
351f16e5f7
kcms/effects: Relax minor version import restriction on Kirigami module
We still keep major version number around though, because it used to
cause issues with path resolution without it.
2023-06-05 12:17:07 +03:00
ivan tkachenko
02d4c72e95
kcms/effects: Add context to i18n string
Similar to how it's written in KWin Scripts KCM.
2023-06-05 12:15:55 +03:00
l10n daemon script
3297b3b396 GIT_SILENT Sync po/docbooks with svn 2023-06-05 02:17:42 +00:00
Vlad Zahorodnii
59cea67401 Avoid unnecessary Workspace::updateClientArea()
Currently, when a window is added or removed, the work area will be
recomputed unconditionally. But in many cases, it's unnecessary because
only a small fraction of windows has a strut (in default setup, only the
panel has a strut).
2023-06-04 18:21:59 +00:00
Vlad Zahorodnii
30ac125986 backends/wayland: Use linux dmabuf feedback to get main device
Currently, the render node is hardcoded. It works okay as long as the
main device and the hardcoded node are the same. But it breaks on multi
gpu setups where the render device is not /dev/dri/renderD128.
2023-06-04 18:07:29 +00:00
ivan tkachenko
7db140d03b
kcms/effects: Move footer actions to the page header
…to avoid the "two stacked rows of buttons" effect.

Changes "Get New" button text to avoid redundancy because title already
contains the "Desktop Effects" string in it.
2023-06-04 14:58:12 +03:00
ivan tkachenko
3194d74851
kcms/effects: Remove obsolete autoPlay property from Video component
It does not exist in Qt 6 anymore, and it's not very clear how to
replace it.
2023-06-04 14:58:12 +03:00
ivan tkachenko
4faf50d8e3
kcms/effects: Set correct width expression for ListView delegates 2023-06-04 14:58:11 +03:00
ivan tkachenko
9164784270
kcms/effects: Set explicit spacing on layouts
Default value of 5 does not align with anything in KDE HIG.

Also a little bit of extra margin around the label looks better on top
of a search field.
2023-06-04 14:58:11 +03:00
ivan tkachenko
e0a89bf97d
kcms/effects: Set header label to WordWrap instead of eliding into nowhere 2023-06-04 14:58:11 +03:00
ivan tkachenko
7dd04616ad
kcms/effects: Set some sensible default (implicit) page size
so that kcmshell does not freak out with vertically collapsed window.
2023-06-04 14:58:11 +03:00
ivan tkachenko
4d63039b2f
kcms/effects: Fix & modernize QML/JS code style
Key-value mapping is more convenient to use than iterating through array
manually, and Map type is safer to use than plain old ECMAScript Object.
2023-06-04 14:58:10 +03:00
ivan tkachenko
b91d9a96ae
kcms/effects: Use ellipses instead of triple period
A real ellipsis character is better for accessibility, as screen readers
will describe it appropriately.
2023-06-04 14:58:08 +03:00
l10n daemon script
027dba9d3f GIT_SILENT Sync po/docbooks with svn 2023-06-04 02:38:59 +00:00
l10n daemon script
b1551b2f90 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-04 02:34:24 +00:00
l10n daemon script
4a93985e50 GIT_SILENT Sync po/docbooks with svn 2023-06-03 02:26:27 +00:00
ivan tkachenko
69feba45ee
kcms/rules: Port signal handlers to explicit arguments, fix QML/JS code style
Implicit injection of arguments is deprecated in Qt 6, and throws runtime warnings.
2023-06-02 19:48:15 +03:00
ivan tkachenko
a1a3b9b656
kcms/rules: Use ellipses instead of triple period
A real ellipsis character is better for accessibility, as screen readers
will describe it appropriately.
2023-06-02 19:46:36 +03:00
Vlad Zahorodnii
e16a6d6561 Remove redundant X11Window::shapeChanged signals
X11Window::moveResize() already emits it.
2023-06-02 07:41:10 +00:00
Vlad Zahorodnii
db0447b52a Rename X11Window::geometryShapeChanged to X11Window::shapeChanged 2023-06-02 07:41:10 +00:00
Vlad Zahorodnii
e5478e2d90 Move Window::geometryShapeChanged to X11Window 2023-06-02 07:41:10 +00:00
Vlad Zahorodnii
d22cc67df9 libkwineffects: Drop EffectsHandler::windowGeometryShapeChanged
It's very X11-specific and it's unused.
2023-06-02 07:41:10 +00:00
l10n daemon script
9a28ede4e6 GIT_SILENT Sync po/docbooks with svn 2023-06-02 02:23:09 +00:00
Arjen Hiemstra
8d0e1b290a screencast: Discard pending buffer and fence if stream state changes
While the changes made earlier prevent enqueueing buffers when the
stream is not in a streaming state, screencasting continued to crash.
The reason for that seems to be that pipewire will, in certain cases,
invalidate some buffers, including the buffer that we are currently
tracking as "pending buffer". The result of this is that when we then
try to enqueue that buffer, we get a crash.

To prevent this, discard the pending buffer when the stream state
changes. Since that makes the pending fence useless as well, also
discard it and its notifier.
2023-06-01 09:25:17 +00:00
Vlad Zahorodnii
aedd67ef4b plugins/eyeonscreen: Animate towards window's screen's center
This looks better on multi screen setups.
2023-06-01 08:59:51 +00:00
Vlad Zahorodnii
a7f41f26bb Make show desktop mode hide windows
After porting the desktop background window to the layer-shell protocol,
the desktop window is not raised up in the stack anymore when the
showing desktop window is activated. The main reason to avoid this is to
avoid fighting and overriding layer shell logic.

As another way to implement the show desktop mode, this change makes the
workspace hide windows that don't belong to desktop.

It's a better solution for a couple of reasons: "keep above" and other
overlay windows will be properly hidden and it lets us avoid touching
the stacking order.

BUG: 387593
BUG: 406101
BUG: 469827
2023-06-01 08:59:51 +00:00