Commit graph

25846 commits

Author SHA1 Message Date
Xaver Hugl
4ad5670ddf backends/drm: set dma-fence deadlines if available
This tells the kernel when a buffer should be done rendering, which allows
it to for example increase GPU clocks in order to hopefully hit our deadlines.
That in turn should reduce the amount of dropped frames

CCBUG: 452119
2023-12-07 13:17:58 +00:00
Vlad Zahorodnii
1cd1047eba scripting: Don't block client until acquire fence is signaled in WindowThumbnailItem
We just need to ensure that qtquick rendering commands don't use the
window thumbnail until it's ready. The CPU can continue executing its
commands.
2023-12-07 12:29:37 +02:00
Vlad Zahorodnii
e89916a6ba Assign top-left screen corner to overview by default 2023-12-07 06:31:56 +00:00
l10n daemon script
07837fc823 GIT_SILENT Sync po/docbooks with svn 2023-12-07 02:18:45 +00:00
Xaver Hugl
b76c793d95 opengl/glshadermanager: work around GLES2 not supporting mix with bvec
BUG: 478144
2023-12-06 23:22:09 +00:00
Vlad Zahorodnii
1729dee3ef plugins/overview: Make transition between overview-grid modes longer
Otherwise it's barely visible.
2023-12-06 17:40:30 +00:00
Ismael Asensio
a26e66be4b kcms: Port away from SwipeListItem to ItemDelegate
Let's port the remaining uses to the upstream simpler alternative
`ItemDelegate`, which provides a consistent styling and fixes some
issues such as the background and highlighting.

This affects the rules, efects and virtual desktops KCMs.
2023-12-06 17:26:53 +01:00
Marco Martin
022214e411 Less concurrent animations
Overview was trying always to animate the opening with 2 animations at the same moment:

* the transition from initial to active in WindowHeapDelegate
* the animation on the partialactivationfactor was always ran, partial or not

this resulted in jankier animations than they could be.

now base only on partialanimationfactor, so we a re sure there is one single way to trigger the effect
2023-12-06 16:04:13 +00:00
Ismael Asensio
c16a5e355f kcm/rules: Fix OverlaySheet shadow coverage
Do not reparent the OverlaySheet's parent and let it be the
whole page, so that the shadow darkening also covers the empty
space below the view and the placeholder message

BUG: 477963
FIXED-IN: 5.91.0 (Beta2)
2023-12-06 15:41:20 +00:00
Aleix Pol Gonzalez
0527d301dd Address licence of plugin.h
The rest of the project is GPLv2, this one is GPLv3 for no apparent
reason. Even the .cpp file is GPLv2.

Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
2023-12-06 15:49:00 +01:00
Vlad Zahorodnii
6eca078db9 Fix "Drag down to close" label visibility
It's visible by default but has 0 opacity, which results in unnecessary
relayouting. The opacity is vice versa as well.
2023-12-06 14:19:58 +00:00
Aleix Pol Gonzalez
62b379ea55 backends/drm: Fix build with older kernels
DMA_BUF_IOCTL_EXPORT_SYNC_FILE was only included some time ago in the
kernel.

Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
2023-12-06 14:06:15 +01:00
David Edmundson
25f4732764 effects/overview: Avoid relaying text during animation
There is a window title beneat the stock WindowHeapDelegate. The label
was bound to the size of the window, but because this animates our label
resizes every frame too.

Given the label is only at full opacity when the window is filling the
ExpoCell, we can set the width of our label to that directly.

This looks less glitchy as we don't change wrapping during animation,
but also should have a noticable performance impact as we avoid
re-laying out multiple times.
2023-12-06 10:55:54 +00:00
Xaver Hugl
f3aaede382 backends/drm: properly handle neither CTM and gamma being supported
Instead of hardcoding only NVidia, try to use CTM and GAMMA_LUT before falling
back to the shader path. This way it also works on other GPUs that lack
color management hardware, and only falls back to the color management path
on older NVidia drivers.

This commit also ensures that the color management hardware is set properly
after toggling color management on and off again, and simplifies ColorDevice
to only deal with rgb factors instead of always calculating luts. This should
improve performance of night color animations on hardware where CTMs are
supported

CCBUG: 453701
2023-12-06 10:32:49 +01:00
Xaver Hugl
4ec8430a4b backends/drm: fix vrr being wrongly assumed disabled with cursor movement 2023-12-06 08:34:55 +01:00
Xaver Hugl
120d141501 backends/drm: use sync files for checking buffer readiness and use IN_FENCE_FD
This shouldn't change anything in practice, but with some badly behaving
drivers it can prevent oversynchronization.
2023-12-06 08:34:55 +01:00
l10n daemon script
b8caf31861 GIT_SILENT Sync po/docbooks with svn 2023-12-06 02:19:52 +00:00
l10n daemon script
520ead8f9e 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-12-06 02:10:37 +00:00
Vlad Zahorodnii
b01b626ca8 x11: Fix MouseButtonPress events sent to decoration
ButtonPressEvent::state includes keys and buttons prior to the button
press has been generated.

On the other hand, it appears that QMouseEvent::buttons() should include
currently pressed buttons, i.e. the button that has been just pressed
should be in that bitfield.

This is important for QQuickDeliveryAgent, which checks
QMouseEvent::button() and QMouseEvent::buttons() to decide whether to
send the button event only to tap handlers or both tap handlers and
mouse areas.

BUG: 476653
2023-12-05 22:04:10 +00:00
Xaver Hugl
7c8036efef core/colorspace: fix mapTo method and support PQ with it
BUG: 477799
2023-12-05 18:28:23 +00:00
Xaver Hugl
ab48621758 plugins/magnifier: use floating point offscreen texture
With color management, everything would get clamped to 1 nit otherwise.

BUG: 477841
2023-12-05 17:56:27 +00:00
Rafał Szalecki
3dc8b937ba Add missing whitespace in magiclamp config 2023-12-05 16:00:00 +00:00
Xaver Hugl
7fdf0fb792 backends/drm: support atomic modesetting in virtual machines
With kernel 6.6+, HOTSPOT_X and HOTSPOT_Y are exposed on the cursor plane
in virtual machines, so the fallback to the legacy API is no longer needed.
At some point in the future, the list of virtual machine drivers can be
dropped entirely.
2023-12-05 15:39:03 +00:00
Vlad Zahorodnii
57e2afaec1 plugins/shakecursor: Add descale animation 2023-12-05 15:19:29 +00:00
Vlad Zahorodnii
0a5bd7397b plugins/shakecursor: Make it easier to build up magnification 2023-12-05 15:19:29 +00:00
Vlad Zahorodnii
494e4a07f2 plugins/shakecursor: Don't trigger for cursor pushback
The shake detector is mistriggered by sporadic pointer movement when the
cursor is pushed back by a screen edge.

As a way to prevent it, this change adds a bounding rectangle
constraint. The cursor will move chaotically within a small bounding
rectangle if it's pushed back. So it should be enough to just check
the length of the diagonal.
2023-12-05 08:50:03 +00:00
l10n daemon script
999814796b GIT_SILENT Sync po/docbooks with svn 2023-12-05 02:12:10 +00:00
l10n daemon script
e4c979c578 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-12-05 02:05:58 +00:00
Nicolas Fella
f399d2442a Adapt to plasma-framework targets being renamed 2023-12-04 19:43:47 +00:00
Yifan Zhu
c441ce5cd1 Avoid accidental mixing of qreal and int
The code for placeSmart uses ints to store coordinates and dimensions,
but the various methods of QRectF return qreal types, which can be
non-integers under fractional scaling, causing multiple issues.

This commit explicitly converts the needed quantities to ints,
avoiding the issues.

Previously, the code relied on the assumption that
y = area.y() + area.height(); implies !(y < area.y() + area.height()).
This doesn't always hold when mixing qreals and ints, causing infinite loops
under fractional scaling when attempting to open large windows, as
reported in BUG 477820.

This commit also extends the fix in 5502ce9 to fractional scaling scenarios.
The ceiling of client widths and height is used, instead of the implicit
floor, which caused BUG 477886.

BUG: 477820
BUG: 477886
2023-12-04 08:59:58 -08:00
Nate Graham
e28ec8ada1 kcms/screenedges: fix defaults indicator for "remain active" checkbox
The initial value was being initialized to true despite the setting
being off by default, and the default checker was highlighting when it
was false, not when it was true.

BUG: 477329
FIXED-IN: 6.0
2023-12-04 14:58:25 +00:00
l10n daemon script
86a4906bf8 GIT_SILENT Sync po/docbooks with svn 2023-12-04 02:13:39 +00:00
l10n daemon script
5b4dce93e3 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-12-04 02:08:23 +00:00
l10n daemon script
3cc8e9f13b GIT_SILENT Sync po/docbooks with svn 2023-12-03 02:12:56 +00:00
l10n daemon script
ad07733e18 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-12-03 02:07:06 +00:00
l10n daemon script
5533b50d66 GIT_SILENT Sync po/docbooks with svn 2023-12-02 02:12:25 +00:00
l10n daemon script
6a494f9364 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-12-02 02:07:11 +00:00
Vlad Zahorodnii
dd9e04fb18 Fix -Wdeprecated-declarations 2023-12-01 12:06:48 +02:00
Bharadwaj Raju
e5753ea336 Make autohide screen edges use the same activation delay setting as other edges
Makes it possible to easily target things in a window near your panel edge,
without bringing up your panel.

The `m_client` condition this MR removes appears to have been added solely to make autohiding panels appear instantly. See c4140d6f4e.

BUG: 267277
2023-12-01 08:09:35 +00:00
l10n daemon script
83d0764870 GIT_SILENT Sync po/docbooks with svn 2023-12-01 02:15:13 +00:00
l10n daemon script
0468860b0d 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-12-01 02:08:56 +00:00
Vlad Zahorodnii
f5f343d33e opengl: Drop scale arg in GLTexture::render()
It makes the API confusing and in many places, the target size is
already in device pixels.
2023-11-30 13:55:55 +00:00
Kai Uwe Broulik
cecd630b2e wayland/xdgforeign_v2: Create UUID without braces
They can be annoyin to type on the terminal, requiring escaping and what not.
The protocol doesn't specify the format, so we can just drop them.
2023-11-30 13:17:08 +00:00
l10n daemon script
8dc297db71 GIT_SILENT Sync po/docbooks with svn 2023-11-30 02:09:51 +00:00
l10n daemon script
2ad4bb6de3 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-11-30 02:05:05 +00:00
Vlad Zahorodnii
7787920277 cmake: Improve readability
Indent target_link_libraries of kwin to improve code readability. As is,
PUBLIC and PRIVATE blend with target names and therefore they are harder
to spot.
2023-11-29 14:21:36 +00:00
l10n daemon script
646b508efe GIT_SILENT Sync po/docbooks with svn 2023-11-29 14:17:09 +00:00
l10n daemon script
2b29e702dc 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-11-29 14:10:58 +00:00
Vlad Zahorodnii
5e90452d08 Add more closed window checks
The stack contains closed windows, so we need to guard against them.

BUG: 475423
2023-11-29 13:56:07 +00:00
Vlad Zahorodnii
c0b387bf5e backends: Drop waylandServer dependency
Backends dependending on the wayland server is not great, it makes them
less reusable and creates a strict instantion order that doesn't fully
make sense.
2023-11-29 13:31:47 +00:00