Xaver Hugl
b29b3db26d
plugins/colorpicker: fix interaction with SDR brightness
...
Right now both source and target color descriptions have SDR brightness values,
and the target one gets used; in this case however the source brightness needs
to be used instead.
BUG: 484497
2024-04-06 13:28:08 +00:00
l10n daemon script
2dbf2dd995
GIT_SILENT Sync po/docbooks with svn
2024-04-06 01:26:54 +00:00
Yifan Zhu
c05a26f5c4
remove modifier only shortcuts
...
This is now implemented in kglobalacceld
BUG: 371560
2024-04-05 07:35:58 -07:00
Vlad Zahorodnii
693603d87a
plugins/screencast: Unset spa_data::data for memfd buffers
...
The data pointer should be set mainly for SPA_DATA_MemPtr.
2024-04-05 12:06:42 +00:00
Vlad Zahorodnii
17c857ce66
plugins/screencast: Drop ScreenCastSource::hasAlphaChannel()
...
It's mainly unused.
2024-04-05 12:06:42 +00:00
Vlad Zahorodnii
c3c3b903b1
plugins/screencast: Refactor buffer management
...
Use GraphicsBuffers both for dmabuf and memfd code paths.
2024-04-05 12:06:42 +00:00
l10n daemon script
608cc0e7f8
GIT_SILENT Sync po/docbooks with svn
2024-04-05 01:24:39 +00:00
Ian Forbes
bd2728fac1
backend/drm: fix cursor hotspot enablement for virtualized drivers
...
DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT can only be set after DRM_CLIENT_CAP_ATOMIC
has been enabled.
2024-04-04 21:28:41 +00:00
David Redondo
9a74d70ba4
Fix build with newer QtWaylandScanner
...
Because of a shortcoming in upstream qtwaylandscanner and the cmake
macro we defered to the ecm macro which renames the output files
acoording to what qtwaylandscanner expects. However since this
was corrected in newer Qt this doesn't build anymore since
the tool now expects correctly named files.
2024-04-04 16:08:58 +00:00
Xaver Hugl
d9ee6d98ae
backends/drm: support cropping with direct scanout
2024-04-04 15:28:53 +00:00
Xaver Hugl
4448e23363
backends/drm: remove amd cursor-only commit workaround
...
The workaround prevents cropping with direct scanout, and it's no longer necessary
because we force a software cursor with adaptive sync on AMD to work around a related
problem
2024-04-04 15:28:53 +00:00
Xaver Hugl
9c2035ca63
scene/workspacescene: fix direct scanout checks with subsurfaces
...
The check ignored that subsurfaces could be not visible, not mapped, and also below
the parent surface
2024-04-04 15:07:22 +00:00
Xaver Hugl
da34191115
backends/drm: actually prefer alpha formats again
...
The drm formats will never be the same, the intention was to check for bits
per color and bits per pixel
2024-04-04 13:51:05 +00:00
Aleix Pol Gonzalez
2b0b04235c
wayland_server: Only check if there's an executable when we check permissions
...
There's not much point checking that we can convert an executable into a
file if we are not going to use that file.
Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
2024-04-04 13:09:01 +00:00
Weng Xuetian
8c6ebee318
Fix inconsistent default keyboard delay value used in kwin.
...
plasma-desktop/keyboard/keyboardmiscsettings.kcfg has the default value
600. When default value (600) is set from kcm, kwin will wrongly use its
own default value in the code (660, which is most likely due to a typo when the
code is initially written).
2024-04-03 15:47:03 -07:00
Xaver Hugl
38e2bf34cf
backends/drm: signal dmabuf feedback if an unsupported modifier is used
...
Otherwise the per-surface feedback never gets updated, and direct scanout fails
2024-04-03 15:13:37 +00:00
David Redondo
cbab4b46c1
Implement xdg-dialog-v1
2024-04-03 14:34:53 +00:00
Vlad Zahorodnii
baaa1db5d1
Guard against negative screen indices in Workspace::xineramaIndexToOutput()
2024-04-03 13:59:08 +00:00
Vlad Zahorodnii
883acb1f58
scene: Update surface texture in preprocess()
...
If two items display image data, the item renderer needs to special case
each item. It's not an extensible design, and my long term goal is to
introduce a separate tree specifically to solve this problem and also
help with computing the repaint damage automatically, instead of issuing
scheduleRepaint()s manually.
The first step is to refactor the item renderer so it merely takes the
input data and renders it. At the moment, it's not exactly the case
because surface textures are updated while painting the items, which
inherently requires special casing. This change moves surface texture
update code to the surface item so it's easier to refactor rendering code
in the item renderer.
2024-04-03 11:45:28 +00:00
Nate Graham
fdd338f02b
Mark risky KNS content
...
By design, these categories of content can run arbitrary code on the
system. This makes them security-sensitive and risky, so we need to
inform the user about it.
Depends on https://invent.kde.org/frameworks/knewstuff/-/merge_requests/309
2024-04-03 10:45:57 +00:00
David Redondo
3d5e10e9bb
Stop vendoring xdg-toplevel-drag
2024-04-03 09:27:46 +00:00
David Redondo
7f20621b25
Bump wayland-protocols to 1.34
2024-04-03 09:27:46 +00:00
Vlad Zahorodnii
57a79608da
Disable freebsd ci
...
It's broken and it blocks normal workflow.
2024-04-03 11:02:54 +03:00
l10n daemon script
7c3a27fb43
GIT_SILENT Sync po/docbooks with svn
2024-04-03 01:28:26 +00:00
Ser Freeman
298a8ca8c5
XdgSurfaceWindow: Always update move resize geometry
...
Since interactive move resize logic has changed, there is
no need to guard maybeUpdateMoveResizeGeometry anymore.
BUG: 483309
2024-04-02 16:42:38 +00:00
Vlad Zahorodnii
7bb250826e
wayland: Emit closed signal immediately after marking the window as closed
...
The main motivation is to give users a chance to perform their cleanup.
2024-04-02 15:34:15 +03:00
Vlad Zahorodnii
28d6b5230a
Unset Window::tile() when the window is closed
...
If a window is closed, its geometry should not change. The window has to
leave its assigned tile so it's not possibly moved or resized.
2024-04-02 15:34:15 +03:00
Yifan Zhu
5272c24301
plugins/mousemark: clear drawing when no modifiers are pressed
...
Previously when drawing has length 1, it is not cleared. So the
remaining point in drawing can connect with the new point when the user
represses the modifiers, leading to a unexpected mark.
This ammends commit 46807b1a72
.
BUG: 482297
2024-04-02 08:52:45 +00:00
Yifan Zhu
b4e15b28b6
plugins/mousemark: correct reserve size.
...
verts is now QVector<QVector2D>. So don't reserve 2x the size.
This ammends commit 617f3b9000
.
2024-04-02 08:52:45 +00:00
Vlad Zahorodnii
4c384d1e9f
plugins/screencast: Destroy renegotiate event
...
If I'm not mistaken, the renegotiate event is leaked. Also, its handler
function can be hypothetically called after thhe ScreenCastStream object
is destroyed.
2024-04-02 08:21:40 +00:00
Vlad Zahorodnii
0c49ae5360
plugins/screencast: Corrupt header to indicate that buffer has no data
...
SPA_META_HEADER_FLAG_CORRUPTED indicates that the buffer contains
absolutely no any data.
SPA_CHUNK_FLAG_CORRUPTED indicates that the buffer has no frame contents
but it can contain other data, for example cursor metadata.
2024-04-01 11:41:22 +03:00
l10n daemon script
a4be9859b7
GIT_SILENT Sync po/docbooks with svn
2024-04-01 01:19:43 +00:00
l10n daemon script
4d72263b31
GIT_SILENT Sync po/docbooks with svn
2024-03-31 01:38:05 +00:00
l10n daemon script
20960c2fea
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"
2024-03-31 01:14:02 +00:00
l10n daemon script
b5c127519f
GIT_SILENT Sync po/docbooks with svn
2024-03-30 01:19:32 +00:00
l10n daemon script
7ac61516b2
GIT_SILENT Sync po/docbooks with svn
2024-03-29 01:38:23 +00:00
l10n daemon script
9165ba3b20
GIT_SILENT Sync po/docbooks with svn
2024-03-28 01:45:49 +00:00
Vlad Zahorodnii
5c2314a6bd
plugins/screencast: Handle failing to import dmabuf
2024-03-27 15:41:54 +00:00
Nicolas Fella
9e9da67fc0
kcm/decoration: Port to ecm_add_qml_module and declarative type registration
...
This makes the types visible to QML tooling
2024-03-27 10:26:24 +00:00
Niccolò Venerandi
c8e0568022
Fix oversights on shortcut handling within Overview/Grid effect
...
BUG:482931
2024-03-27 10:01:15 +00:00
l10n daemon script
4be92db483
GIT_SILENT Sync po/docbooks with svn
2024-03-27 09:55:36 +00:00
l10n daemon script
bd84f1606d
GIT_SILENT Sync po/docbooks with svn
2024-03-27 01:39:29 +00:00
Vlad Zahorodnii
8d3c06a178
plugins/screencast: Simplify damage calculation in region screen cast source
...
Whether the output is rotated should be irrelevant. The region screen
cast source handles scrapping fairly well blitting from rotated outputs.
2024-03-27 02:00:57 +02:00
Vlad Zahorodnii
d1fdb69946
plugins/screencast: Drop "stream" in ScreenCastStream::streamReady
...
The word "stream" is redundant.
2024-03-27 02:00:57 +02:00
Vlad Zahorodnii
cd2a4de82f
plugins/screencast: Rename ScreenCastStream::stop() to close()
...
This is to help disambiguating between the code that shuts down the
stream completely and one that pauses/resumes the stream.
2024-03-27 02:00:57 +02:00
Vlad Zahorodnii
7894db7504
plugins/screencast: Pause/resume source when stream is paused/resumed
2024-03-27 02:00:55 +02:00
Vlad Zahorodnii
9d3e87bd9d
tiles: Evacuate windows in CustomTile::remove()
2024-03-26 23:23:59 +00:00
Vlad Zahorodnii
ea9691a2f5
tiles: Use deleteLater() in CustomTile::remove()
...
Otherwise it seems that QQmlEngine can segfault.
2024-03-26 23:23:59 +00:00
Kevin Ottens
0bcb9a0ddd
plugins/screencast: Indicate which stream is considered in debug logs
...
We can easily have several streams manipulated at the same time, this
helps to distinguish between them.
2024-03-26 23:09:25 +00:00
Kevin Ottens
399a955eb2
plugins/screencast: Add more debug about the format negociation with PW
2024-03-26 23:09:25 +00:00