Commit graph

25022 commits

Author SHA1 Message Date
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
Vlad Zahorodnii
bc43be9c00 Emit X11Window::{windowShown,windowHidden} only when hidden propery changes
Currently, X11Window emits Window::windowShown and Window::windowHidden
signals differently than the WaylandWindow. On the other hand, at quick
glance, there's no reason why it has to work like this, so let's make
X11Window behave similarly to WaylandWindow. This lets us simplify code
and potentially unvirtualize Window::isHiddenInternal() in the future.
It also makes X11Window::internalHide and X11Window::internalKeep more
reusable as it doesn't handle focus anymore.
2023-06-01 08:59:51 +00:00
ivan tkachenko
417a7f3601 kcms/scripts: 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 "Script" word in it.
2023-06-01 06:44:21 +00:00
ivan tkachenko
ae11658e0c kcms/scripts: Always set spacing property on Row & Column layouts
Default value of 5 does not visually align with anything in our HIG.
2023-06-01 06:44:21 +00:00
l10n daemon script
2542662dc9 GIT_SILENT Sync po/docbooks with svn 2023-06-01 02:33:27 +00:00
ivan tkachenko
bef357db5b
kcms/scripts: Replace magic number with named enum member of NewStuff events 2023-05-31 17:16:00 +03:00
ivan tkachenko
5de83e78cc
kcms/scripts: Use ellipses instead of triple period
A real ellipsis character is better for accessibility, as screen readers
will describe it appropriately.
2023-05-31 16:43:14 +03:00
l10n daemon script
d63bbd4329 GIT_SILENT Sync po/docbooks with svn 2023-05-30 03:08:21 +00:00
Laurent Montel
9ebc3e298f We use qt6 now 2023-05-29 13:36:59 +00:00
Xaver Hugl
10c1e7892e backends/drm: use max frame average brightness instead of max brightness in HDR metadata
Using the peak maximum brightness can cause displays to do more agressive tone mapping, which
overall darkens the image without any reason. Instead, send the max fame average brightness,
which the display can always do over the whole screen
2023-05-29 08:26:35 +00:00
Xaver Hugl
e6d2607fe3 scene/itemrendereropengl: don't do colorspace conversions if not needed
There was a check for this in the shader before, but it got lost. It's better
to completely compile it out of the shader anyways
2023-05-29 08:26:35 +00:00
Xaver Hugl
242fce56b6 libkwineffects/kwinglutils: replace random eotf integers with named constants 2023-05-29 08:26:35 +00:00
Xaver Hugl
6272d1d9f3 libkwineffects/kwinglutils: fix saturation calculation with wide color gamut and document it 2023-05-29 08:26:35 +00:00
Xaver Hugl
84ce4751d9 libkwineffects/kwinglutils: replace output string with a temporary variable
Dragging the output string through the whole shader is annoying. The use
of a temporary variable makes the shader code more readable
2023-05-29 08:26:35 +00:00
l10n daemon script
91b709fdbe GIT_SILENT Sync po/docbooks with svn 2023-05-29 02:23:23 +00:00
l10n daemon script
7bef0374d0 GIT_SILENT Sync po/docbooks with svn 2023-05-28 02:39:32 +00:00
l10n daemon script
24a5290ed2 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-05-28 02:34:13 +00:00
l10n daemon script
a710ddbbe1 GIT_SILENT Sync po/docbooks with svn 2023-05-27 02:22:45 +00:00
David Edmundson
982e409319 scripting: Use a better path for scripts
Currently we create objects at the path /0 /1 and so on. This isn't very
well namespaced
2023-05-26 15:10:47 +00:00
Vlad Zahorodnii
8b4afa0ee5 Remove null window checks in restacking requests
Restacking null windows make no sense. If a window can be null, it
should be guarded by the user. However, in practice, it shouldn't
matter.
2023-05-26 17:30:21 +03:00
David Edmundson
3ccf560252 workspace: Add asserts to check double window insertion
We have a few crash reports that point to m_windows getting out of sync
with reality. Add some additional checks in the hope they point to
something useful.
2023-05-26 13:11:58 +00:00
Vlad Zahorodnii
b42919e875 Add closed window checks in restacking requests
If a closed window is restacked, it will be reintroduced to the stack
and it will be left dangling, which will eventually result in a crash.
2023-05-26 14:29:53 +03:00
Vlad Zahorodnii
07a6b500c8 Add closed window checks in some window activation code paths
A closed window cannot be activated, so guard relevant code paths to
ensure that we don't hit this unexpected case.

CCBUG: 438315
2023-05-26 14:21:16 +03:00
Vlad Zahorodnii
71e8fad1f6 Delegate screen edge reservation error handling to user
Window screen edge reservation relies on Window::showOnScreenEdge()
getting called when the screen edge can't be reserved. That makes screen
edge code not easy to follow.

This change makes ScreenEdges::reserve() indicate if a screen edge has
been successfully reserved and delegate error handling to the user.

In most cases, if a screen edge has not been successfully hidden, you
just need to avoid calling hideClient() and wait until the next moment
when the window can be hidden again. Note that it differs from the
current behavior but it's for a good reason. If the panel can't be
hidden now, the panel has no idea how to handle it; only the compositor
knows when it can be hidden again.
2023-05-26 08:50:37 +00:00
Vlad Zahorodnii
687415076f x11: Drop support for "let windows cover panel" mode in _KDE_NET_WM_SCREEN_EDGE_SHOW
This seems really hacky and plasmashell dropped "let windows cover panel" mode.
2023-05-26 08:50:37 +00:00
David Edmundson
cf2410f631 Guard updateLayer for deleted windows
When a window is deleted it all "set" operations should no-op.

As for the bug specifically, we have an effect that keeps the desktop
alive. If a user calls showDesktop not only do we not update the
stacking order, we also call updateLayer when the client closes this is
after the window is in the deleted state.

BUG: 470067
2023-05-26 08:30:30 +00:00
l10n daemon script
1a883f7626 GIT_SILENT Sync po/docbooks with svn 2023-05-26 02:15:47 +00:00
Xaver Hugl
4cb4be2e64 libkwineffects/kwingltexture: clarify ownership and remove immutability 2023-05-25 19:21:26 +02:00
Xaver Hugl
20b4f26045 libkwineffects: simplify gltexture
Instead of using custom private classes for taking care of backend specific
stuff, store that directly in the GLTexture subclasses
2023-05-25 19:16:02 +02:00
Xaver Hugl
16fb2848ed libkwineffects: handle GLTexture upload failures
This is required for properly dealing with GPU resets
2023-05-25 19:13:52 +02:00
Xaver Hugl
572bc75de4 libkwineffects: handle GLTexture allocation failures
This is required for properly dealing with GPU resets
2023-05-25 18:46:45 +02:00
Xaver Hugl
bfc8bcb24a libkwineffects: use std::unique_ptr in GLTexture
The implicit internal sharing stuff wasn't used in KWin, and the way the
d pointer was initialized was horrible
2023-05-25 16:51:57 +02:00
Xaver Hugl
3eb5f18861 libkwineffects: make GLVertexBuffer::map safer
This ensures that in the event of a GPU reset, failure to map the vbo is
always handled without crashing
2023-05-25 16:51:57 +02:00
David Edmundson
3ea701743e screen edge: Emit cleanup signals if needed on teardown
The Effects API has one signal screenEdgeApproaching with effects
monitoring the last signal to stay in sync.

If an Edge is destroyed whilst visible, effects currently do not get
notified and it can stay there forever.

This patch emits screenEdgeApproaching if appropriate with a factor of 0
when an edge is destroyed.

BUG: 403354
2023-05-25 09:59:00 +00:00
David Edmundson
db10a85efc screenedge: Remove outdated line of documentation
This moved to X11Window at some point
2023-05-25 11:51:14 +03:00
Joshua Goins
6eff561234 useractions: Add separator above the "Close" action
This matches other places in Plasma e.g. the task manager, where
there is a similarly placed separator.
2023-05-24 23:53:18 -04:00