24606 Commits (e7c803b7e5a3070e8b78886f1723a037ec2f8846)
 

Author SHA1 Message Date
Xaver Hugl e7c803b7e5 backends/drm: store drm properties directly in drm objects
This makes it possible to ensure type safety for enums, as each drm property
object can have its own type now, and it reduces the amount of typing needed
to access properties
1 year ago
Xaver Hugl adc5104e2a autotests/drm: disable tests to work around FreeBSD CI issues
The tests don't do anything platform specific, so test only on Linux
until the cause of the problems is found
1 year ago
Xaver Hugl 2c86866876 backends/drm: drop some unused logging
We're using drm_info to get property values from users. If property logging
in KWin is needed, it will be different from what we had until now
1 year ago
Nicolas Fella 8a0a91fea1 Port to standalone kglobalacceld 1 year ago
l10n daemon script 6a54f76dc4 GIT_SILENT Sync po/docbooks with svn 1 year ago
Vlad Zahorodnii 111e98d24a autotests: Remove render node check in testPointerInput
The test doesn't require OpenGL anymore.
1 year ago
Vlad Zahorodnii e3bc9e8ac6 autotests: Allow running lockscreen test with software rendering
The test needs OpenGL in order to ensure that the window view effect is
loaded and it registers a screen edge. On the other hand, we could
register a screen edge ourselves and thus allow running the test on
freebsd.
1 year ago
Vlad Zahorodnii 35efeddb48 wayland: Fix sending org_kde_plasma_virtual_desktop.removed
If a virtual desktop is removed, the client will receive two removed
events.
1 year ago
Vlad Zahorodnii ac74de22c7 autotests: Fix testPlasmaVirtualDesktop
The test fails because it incorrectly handles the server-side and the
client-side virtual desktops being removed within one event loop cycle.

In order to fix the test, this change makes the removal of server-side
virtual desktop object take effect immediately.
1 year ago
Vlad Zahorodnii 959bb661af autotests: Drop testBufferSizeChange
testXdgShellWindow already tests intricate subsurface size changes. The
surface pixmaps are handled differently now too, so the test is not
useful as it used to be 4 or 5 years ago.
1 year ago
Vlad Zahorodnii c54a324e99 autotests: Make PointerInputTest::testUnfocusedModifiers() less flaky
While 50ms is enough on dev machines, CI runners can be more loaded and
some events can arrive after more time.
1 year ago
Vlad Zahorodnii e0da725533 autotests: Fix Test::waitForWindowDestroyed
Before Deleted merge, it used to be equivalent to waiting until the
window is closed.

This fixes tests waiting until the window closing animation completes
and the Window object is destroyed.
1 year ago
Vlad Zahorodnii 9852748a84 autotests: Use software rendering in testPointerInput
testPointerInput requires OpenGL compositing because it wants to test
cursor push back in the window view effect and the window view effect is
available only if OpenGL is supported.

On the other hand, ScreenEdgesTest::testPushBack() already tests similar
scenario, so let's drop relevant test in testPointerInput to allow
running it when using software rendering.
1 year ago
Vlad Zahorodnii c693450976 backends/virtual: Port to gbm
The virtual backend uses the surfaceless platform. On the other hand, we
move in a direction where the graphics buffer type is explicit, which
creates issues for the virtual backend.

This change ports the virtual backend to gbm so we could manually
allocate dmabuf buffers in order to unify buffer handling in kwin.

Its main drawback is that you won't be able to use the virtual backend
on setups without render nodes. On the other hand, given that the
compositor is meaningless without clients being able to share buffers
with it, it's reasonable to require some way to create and export prime
buffers.
1 year ago
Vlad Zahorodnii 15f6c910be autotests: Fix crash
If a test case is skipped, there will be no input devices.
1 year ago
Vlad Zahorodnii 7a1a1161cc ci: Bump to Qt 6.5 1 year ago
l10n daemon script cf3ab7a0ab GIT_SILENT Sync po/docbooks with svn 1 year ago
Vlad Zahorodnii 0e676ceb93 autotests: Reduce execution time of testWaylandSeat
Currently the test spends a lot of time idling. This change speeds up
the test by removing QTest::qWait() calls.

The sync() helper was introduced to sync both client and server sides.
It lets us simplify some code and get rid of QTest::qWait()s.

With this change, the execution time will drop from 20s to about 300ms.
1 year ago
Markus Ebner d86da339d1 plugins/screencast: Provide absolute timestamps
Pipewire's buffer meta structure apparently wants the presentation timestamp
to be absolute (where absolute means number of nanoseconds since computer was started).
So subtracting the timestamp of the buffer breaks the timestamps later on in the pipeline.
1 year ago
Xaver Hugl 9e3999dc5f backends/drm: remove support for transforming the scene with hardware rotation
This feature is no longer needed, as the scene can efficiently do its own
transformations now. Support for using hardware rotation to make direct scanout
work specifically can be added again later
1 year ago
Xaver Hugl 8ca38fb328 backends/drm: fix buffer orientation check for direct scanout
Without hardware rotation, the buffer transform with always be "normal",
so all "normal" client buffers would be accepted for direct scanout, which
is not correct.

CCBUG: 467138
1 year ago
Alexander Lohnau 3ff7a527e3 kcms: Port to org.kde.config QML module from KConfig
The implementation in KDeclarative will be removed
1 year ago
Vlad Zahorodnii ee31581006 autotests: Remove WAYLAND_ONLY tests
WAYLAND_ONLY will create two tests: one with Xwayland, the other without
Xwayland. This is somewhat wasteful and it results in higher CI times.

On the other hand, Xwayland is started on demand. If a test doesn't need
Xwayland, it won't start.

So let's remove WAYLAND_ONLY in order to lighten kwin on CI resources.
If wayland only tests are needed, we can consider passing the operation
mode to the WAYLANDTEST_MAIN helper, but there aren't such tests afaik.
1 year ago
Vlad Zahorodnii 67b898b803 Move DmaBufAttributes struct to GraphicsBuffer header
The main motivation is to avoid scattering graphics buffer things around
kwin.

DmaBufParams struct has been moved to the OutputBackend, but with the
introduction of buffer allocators, we need to port screencasting code to
the new abstractions some time in the future.
1 year ago
l10n daemon script 22b10c4055 GIT_SILENT Sync po/docbooks with svn 1 year ago
l10n daemon script 6f16d9b273 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"
1 year ago
l10n daemon script 60b3f492d9 GIT_SILENT Sync po/docbooks with svn 1 year ago
Xaver Hugl 9915cfc6df wayland: send modifiers to clients under the mouse 1 year ago
Xaver Hugl ca9eb3d87d wayland/autotests/client: don't assume pointer enter and leave only increment serial by one 1 year ago
Vlad Zahorodnii 232bcc5d82 wayland: Drop support for linux dmabuf buffer flags
A client can specify the following flags when creating a linux dmabuf
client buffer:

- y_invert
- interlaced
- bottom_first

Only the y_invert flag is supported by kwin. The interlaced and the
bottom_first flags are ignored. On the other hand, most clients don't
specify the dmabuf flags. For example, neither EGL nor Vulkan WSIs
use the y_invert flag.

The y_invert flag is undesired because it also blocks optimizations such
as direct scanout because DRM assumes that the origin is in the top left
corner.

Therefore, this change drops the support for linux dmabuf flags. From
the protocol perspective, this is fine. It can be viewed as buffer
import failing with the specified flags.
1 year ago
Vlad Zahorodnii 99af2aa726 core: Move DmaBufAttributes getter to GraphicsBuffer
LinuxDmaBufV1ClientBuffer contains properties (formats, and flags) that
are not available in the base GraphicsBuffer type and there's no reason
to move it there.

In order to get rid of those properties (and eventually hide the
LinuxDmaBufV1ClientBuffer type from the public api), this change adds a
DmaBufAttributes getter in the GraphicsBuffer.
1 year ago
Vlad Zahorodnii 27b27696e8 {effects,scripts,plugins}: Use kwin translation domain
It makes it easier to handle translations when the plugins are stored in
the same directory.
1 year ago
Vlad Zahorodnii 64dca07d48 Remove Messages.sh in libkwineffects
It's unused.
1 year ago
Vlad Zahorodnii e82e9b9f30 Move genericscriptedconfig to kcms directory
The kcms tree suits genericscriptedconfig better as the scripting
directory primarily contains the scripting api.
1 year ago
l10n daemon script da13fe9c08 GIT_SILENT Sync po/docbooks with svn 1 year ago
Vlad Zahorodnii 07f6713a18 scene: Add pixel grid snapping debug pass
The debug shader is targeted to help with debugging blurriness when
using fractional scaling.

The shader works as follows:

- if the vertex coordinate has fractional part, the item will be
  highlighted with blue color
- if the texture coordinate (in device pixels) has fractional part,
  the item will be highlighted with red color

The shader can be toggled by setting the KWIN_SCENE_VISUALIZE=fractional
environment variable.
1 year ago
Hongfei Shang 6f5aa9e4f3 x11: only managed window need readTransient
X11Window::readTransient should not call setTransient for override-redirect windows.

Signed-off-by: Hongfei Shang <shanghongfei@kylinos.cn>
1 year ago
l10n daemon script cfe656e506 GIT_SILENT Sync po/docbooks with svn 1 year ago
Bharadwaj Raju 8e7aab901b Don't create Plasma activation feedback if StartupNotify is false
Prevents a spinning circle in the task manager for such tasks.

cc @nicolasfella
1 year ago
l10n daemon script 28c2dd9afe GIT_SILENT Sync po/docbooks with svn 1 year ago
Vlad Zahorodnii ce1e957181 backends/x11: Use EGL_KHR_platform_gbm
We provide own window system integration bits, so use the
EGL_KHR_platform_gbm extension to get the EGLDisplay for the consistency
sake.
1 year ago
Vlad Zahorodnii 285aa072e9 backends/wayland: Use EGL_KHR_platform_gbm
We provide own window system integration bits, so use the
EGL_KHR_platform_gbm extension to get the EGLDisplay for the consistency
sake.
1 year ago
Vlad Zahorodnii 0dea46548b backends/drm: Drop support for EGL_MESA_platform_gbm
Most platforms nowadays should support EGL_KHR_platform_gbm.
1 year ago
Xaver Hugl 56b2d8d8aa platformsupport/scenes/opengl: pass the correct arguments into eglDestroyImageKHR 1 year ago
Xaver Hugl 86635abe2b platformsupport/scenes/opengl: actually use externalOnly array
It was accidentally dropped in a refactor
1 year ago
l10n daemon script f327f8e514 GIT_SILENT Sync po/docbooks with svn 1 year ago
Vlad Zahorodnii e9614f030c Move vsync monitor helpers to utils/
There was no utils directory when they had been introduced.
1 year ago
Vlad Zahorodnii dca1268187 backends/x11: Port to the new gbm buffer allocator 1 year ago
Xaver Hugl f8bf89e267 wayland/clientbuffer: use std::unique_ptr properly
Taking the address of a reference that's a dereference of a newly created
object is the most possibly confusing way to initialize a std::unique_ptr.
Instead, just pass a std::unique_ptr around to take ownership of
1 year ago
Vlad Zahorodnii 9f7517a55c backends/wayland: Minor code cleanup 1 year ago