Commit graph

23730 commits

Author SHA1 Message Date
Harald Sitter
80ef6295b7 wayland: offer opt out from permission checks
we need this because our paths in CI contexts are mutable and as such
the regular permission logic must not be applied
2022-12-14 21:56:46 +00:00
Thenujan Sandramohan
b34a5a4b4b kcmkwin/kwindesktop: Make new virtual desktops have numbered names
BUG: 410366
FIXED-IN: 5.27
2022-12-14 21:24:21 +00:00
Vlad Zahorodnii
5555ed2836 scene: Fix a typo in WindowItem::updateShadowItem()
Hopefully it's going to fix warnings about bad reference item in
Item::stackBefore().
2022-12-14 18:15:52 +00:00
Xaver Hugl
2a6e3b7ad8 core/outputconfiguration: use std::weak_ptr for storing the mode
Otherwise an unplugged output can cause use-after-free problems on OutputChangeSet
destruction
2022-12-14 15:33:02 +01:00
Xaver Hugl
3c2f0e626b workspace: match KScreen when computing the hash without an edid 2022-12-14 11:04:58 +00:00
Xaver Hugl
892393ffa1 workspace: handle duplicate output hashes correctly
Some outputs have the same EDID, which results in two connected outputs
having the same hash. To find out which config values need to be used,
also check the connector name.
2022-12-14 11:04:58 +00:00
Vlad Zahorodnii
77570c0667 backends/{x11,wayland}: Avoid painting null cursor image
GLTexture(QImage()) may construct an invalid texture, which is going to
make GLTexture::bind() and other requests fail.
2022-12-14 09:03:05 +00:00
l10n daemon script
89613d8673 GIT_SILENT Sync po/docbooks with svn 2022-12-14 03:01:11 +00:00
l10n daemon script
e47bb69afe GIT_SILENT Sync po/docbooks with svn 2022-12-13 02:36:23 +00:00
David Edmundson
c4b134da8d Implement wp-fractional-scale-v1
This allows clients to provide buffers at native resolutions when
fractional scaling is used.

Virtual backend is adjusted to support scales as floats
2022-12-12 12:16:18 +00:00
l10n daemon script
361828dfbe GIT_SILENT Sync po/docbooks with svn 2022-12-12 02:31:23 +00:00
l10n daemon script
14b48796ee 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"
2022-12-12 01:56:33 +00:00
Xaver Hugl
ffad2dd7ad backends/drm: don't break crtc<->plane connections
The kernel rejects such commits without the crtc being completely turned
off first.

BUG: 462214
2022-12-11 15:01:28 +00:00
l10n daemon script
5fae6517ae GIT_SILENT Sync po/docbooks with svn 2022-12-11 02:20:45 +00:00
l10n daemon script
f2bca662da 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"
2022-12-11 01:54:54 +00:00
Ismael Asensio
e8545fdb37 kcms/rules: Notify when a window does not provide a class
Some applications do not provide a window class according to
the spec (WM_CLASS on X11, appId on Wayland), so KWin cannot
"detect" this property.

In those cases, notify the user that this is a bug within the
application (so it is not confused for a KWin misbehavior)
and also prevent setting a wrong description.

BUG: 462644
FIXED-IN: 5.27
2022-12-10 23:24:50 +01:00
Ismael Asensio
bee2c65918 kcms/rules: Use Kirigami.Dialog for error messages 2022-12-10 23:24:50 +01:00
Ismael Asensio
1d5b3a3c89 kcms/rules: Set a title for error messages 2022-12-10 23:24:50 +01:00
Xaver Hugl
d8dc46856e effects/blendchanges: ignore fullscreen windows
Fullscreen windows are most likely games or videos, where the blend effect is an
annoyance that freezes the screen for a moment when a accent color change is triggered
in the background.
2022-12-10 16:28:43 +01:00
Vlad Zahorodnii
555c208b87 backends/x11: Drop X11WindowedBackend::window() 2022-12-10 12:22:58 +00:00
Vlad Zahorodnii
a10193ab4d backends/x11: Drop X11WindowedBackend::windowForScreen() 2022-12-10 12:22:58 +00:00
Vlad Zahorodnii
bb83d66508 backends/x11: Move some method implementations to cpp files 2022-12-10 12:22:58 +00:00
Vlad Zahorodnii
39607a7457 backends/x11: Drop unused X11WindowedBackend::sizeChanged signal 2022-12-10 12:22:58 +00:00
l10n daemon script
02eeb54dd6 GIT_SILENT Sync po/docbooks with svn 2022-12-10 02:05:05 +00:00
l10n daemon script
fedadf706a 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"
2022-12-10 01:48:43 +00:00
Xaver Hugl
20b94c9025 wayland/outputmanagement: reject configurations if outputs change
The meaning of the request is questionable after an output gets added
or removed, and it's an easy way to prevent dangling pointers.

BUG: 460953
2022-12-10 00:39:19 +01:00
Vlad Zahorodnii
e37fd13bb3 backends/wayland: Remove more unused stuff 2022-12-09 20:01:38 +02:00
Vlad Zahorodnii
182026a4bd backends/wayland: Use linux-dmabuf directly
The main motivation behind this change is to get rid of the dependency
on EGLSurface so the order in which output layers are presented or
updated doesn't matter.

At the moment, if both the cursor and the primary layers are updated
within same frame, the read and draw surfaces in present() will be wrong
for the primary layer.

With fbos, the read and draw surfaces won't matter.
2022-12-09 15:23:27 +02:00
David Redondo
cb9ffbcd01 Remove selectionCleared and sendClearSelection from datadevice and friends
Having both selectionChanged and selectionCleared as well as
sendSelection and sendClearSelection complicates things. API users
have to connect to both signals, internally the methods have logic
to call themselves but in the end do the same as the protocols only
know send_selection.
2022-12-09 10:34:08 +01:00
l10n daemon script
dbcbba5fac GIT_SILENT Sync po/docbooks with svn 2022-12-09 02:05:09 +00:00
Natalie Clarius
0053c782a1 quick tiling: find target output by direction 2022-12-08 18:59:44 +00:00
Natalie Clarius
67c558286f useractions: add shortcuts for {switch to/window to} screen {direction}
BUG: 453038
2022-12-08 18:59:44 +00:00
Natalie Clarius
084b88522c workspace: get output in direction relative from reference
BUG: 451286
BUG: 453038
2022-12-08 18:59:44 +00:00
Vlad Zahorodnii
52f6829d6c backends/x11: Introduce cursor layers 2022-12-08 17:37:36 +00:00
Vlad Zahorodnii
3a861640c2 backends/wayland: Simplify initialization of primary layer
Neither wl_egl_window_create() nor eglCreatePlatformWindowSurfaceEXT()
are likely to fail. If they fail, it's okay-ish to let kwin crash.
2022-12-08 17:37:36 +00:00
Vlad Zahorodnii
dbd574ec05 backends/wayland: Introduce cursor layers
It's a necessary step to let kwin repaint the cursor from Compositor.

Unfortunately, it also means that we need to add more (temporary) code
to paint the cursor in backends.
2022-12-08 17:37:36 +00:00
l10n daemon script
1c43571fe1 GIT_SILENT Sync po/docbooks with svn 2022-12-08 02:20:53 +00:00
Vlad Zahorodnii
35a99ec9ad Add explicit output cursor manipulation api
Currently, output backends track the cursor behind the scenes. This
results in some amount of code duplication, for example the handling of
hidden cursors, every backend handles in its own unique way, some don't
do it correctly. Another issue is that output backend interact with
other components behind the back. This can be a problem for tasks such
as backing the cursor with an output layer.

This change introduces explicit output cursor manipulation APIs in the
Output class. There's a good chance that it's going to be revised more
in the future as part of streamlining output layer manipulation apis.

With the proposed changes, the workspace would need to call
Output::setCursor() or Output::moveCursor() to set/unset or move the
cursor, respectively.
2022-12-07 12:05:26 +02:00
Nicolas Fella
6e0012a3c9 Adapt to deprecated KWindowSystem API 2022-12-07 09:50:26 +00:00
Vlad Zahorodnii
f191efb39e backends/drm: outputLayer -> primaryLayer
It makes terminology consistent.
2022-12-07 08:59:41 +00:00
l10n daemon script
47e78b5463 GIT_SILENT Sync po/docbooks with svn 2022-12-07 02:15:25 +00:00
l10n daemon script
9e82887160 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"
2022-12-07 01:53:13 +00:00
Xaver Hugl
3d9ccaf742 backends/drm: fix modifier check
If we force a linear modifier, the modifier list can't match up with the
display, which causes the surface to be recreated every frame.

CCBUG: 462625
2022-12-06 19:55:19 +00:00
Vlad Zahorodnii
ca7f7a42c8 wayland: Make kwin_wayland create virtual outputs
At the moment, we rely on placeholder output getting created, but there
are cases where it's desired to spin kwin with virtual outputs so you
could take screenshots and things as such.
2022-12-06 17:46:49 +00:00
Vlad Zahorodnii
cdda8593d8 backends/virtual: Fix KWIN_WAYLAND_VIRTUAL_SCREENSHOTS
Image path is incorrectly specified in the EGL backend. Also, `%s` must
be `%2`.
2022-12-06 15:26:07 +00:00
Xaver Hugl
bd26f57e18 backends/drm: allow using both adaptive sync and tearing at the same time
The driver will translate that to adaptive sync in the vrr range, and tearing
above it
2022-12-06 11:49:59 +00:00
Xaver Hugl
7c3489b1a5 wayland/tearingcontrol: actually create the d pointer object 2022-12-06 11:49:59 +00:00
Xaver Hugl
b3e977f416 backends/drm: add buffer format to logging 2022-12-06 10:13:38 +00:00
l10n daemon script
f1440ebca1 GIT_SILENT Sync po/docbooks with svn 2022-12-06 02:04:59 +00:00
l10n daemon script
30f73e7b03 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"
2022-12-06 01:49:30 +00:00