Nicolas Fella
f7045cbf96
Remove unused constants
2023-10-09 07:37:41 +00:00
Vlad Zahorodnii
5246d3924f
wayland: Destroy ClientConnection immediately
...
With QObject::deleteLater(), the client object can unexpectedly outlive
the expected lifetime as in 03d0a226fb
.
2023-10-09 06:32:14 +00:00
l10n daemon script
8840d4140b
GIT_SILENT Sync po/docbooks with svn
2023-10-09 02:26:29 +00:00
l10n daemon script
387388be5d
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-10-09 02:13:40 +00:00
l10n daemon script
4b217483a0
GIT_SILENT Sync po/docbooks with svn
2023-10-08 02:12:18 +00:00
Fushan Wen
b80741d531
plugins: add colorblindness correction effect
...
Colorblindness correction shader with adjustable intensity. Can correct for:
- Protanopia (Greatly reduced reds)
- Deuteranopia (Greatly reduced greens)
- Tritanopia (Greatly reduced blues)
FEATURE: 474470
FIXED-IN: 6.0
2023-10-06 21:01:51 +08:00
Vlad Zahorodnii
8d3b4a21c8
wayland: Properly update subsurfaces in cached transaction
...
Cached transaction will be merged with parent transaction when the
parent surface is committed, it's not included in the transaction graph.
2023-10-06 12:47:42 +00:00
Vlad Zahorodnii
7e99ab9438
Build wayland tests with same build options as other tests
2023-10-06 11:21:00 +00:00
Vlad Zahorodnii
8b2b8d87c7
Don't mark wayland demos as tests
2023-10-06 11:21:00 +00:00
Vlad Zahorodnii
7d56aa3687
Merge wayland tests with other tests
...
This makes wayland tests organization consistent with other kwin tests.
2023-10-06 11:21:00 +00:00
Nicolas Fella
d57c66872c
Port to new KService::property API
2023-10-06 07:56:53 +00:00
Vlad Zahorodnii
9e10394db1
Move window specific signals from EffectsHandler to EffectWindow
...
This makes the api of EffectWindow more similar to the api of Window. It
also makes more sense to keep such signals in EffectWindow. In the future,
the effect window can be dropped in favor of the window.
2023-10-06 07:05:37 +00:00
l10n daemon script
c1f49d216c
GIT_SILENT Sync po/docbooks with svn
2023-10-06 02:17:18 +00:00
Xaver Hugl
03d0a226fb
waylandserver: fix race condition
...
When the xwayland connection gets destroyed, it doesn't get deleted immediately. If the
xwayland scale changes in between WaylandServer::destroyXWaylandConnection and the actual
destruction of the connection, KWin would crash
2023-10-05 21:32:55 +02:00
Xaver Hugl
2eb72d0820
main: directly set Xwayland scale, instead of starting a KCM to do the same
2023-10-05 20:29:04 +02:00
Xaver Hugl
3654b76ec2
split output rotation setting from rotation applied because of auto rotation
2023-10-05 20:29:04 +02:00
Xaver Hugl
ae84480fbf
outputconfigurationstore: add new config system
...
Instead of an external service (like KScreen) storing and restoring output configurations,
with this commit KWin takes over that responsibility. This allows it to, among other things,
generate appropriate configs for new sets of outputs immediately, and take KWin-internal information
about outputs into account when generating them.
CCBUG: 474021
CCBUG: 469653
CCBUG: 466342
CCBUG: 470863
CCBUG: 466556
BUG: 466208
BUG: 455082
BUG: 457430
2023-10-05 20:29:04 +02:00
Nicolas Fella
47edb14425
Adapt to KService::property API change
2023-10-05 13:44:48 +00:00
l10n daemon script
ea9d6ef4b3
GIT_SILENT Sync po/docbooks with svn
2023-10-03 02:16:00 +00:00
l10n daemon script
0f587bbcdd
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-10-03 02:06:58 +00:00
Nate Graham
e74baf8b6f
Implement Plasma 6 settings re-org
...
Part of https://invent.kde.org/plasma/systemsettings/-/issues/15 ; see
that Issue for details.
2023-10-02 15:10:05 +00:00
l10n daemon script
fdb75aeec8
GIT_SILENT Sync po/docbooks with svn
2023-10-02 02:18:40 +00:00
Alexander Lohnau
8f626f2c9e
plugins/kdecorations: Add explicit QFileInfo/QCoreApplication includes
...
GIT_SILENT
2023-10-01 17:52:28 +02:00
Alexander Lohnau
a12e0b8e7f
kcms: Add explicit includes for transient KAbstractConfigModule headers
...
Needed after https://invent.kde.org/frameworks/kcmutils/-/merge_requests/174
2023-10-01 17:30:17 +02:00
l10n daemon script
8de7822345
GIT_SILENT Sync po/docbooks with svn
2023-10-01 02:36:01 +00:00
l10n daemon script
7579d0f569
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-10-01 02:22:52 +00:00
Vlad Zahorodnii
0b21c53d44
Move resource_cast helper to shared utils/ directory
2023-09-30 08:09:34 +00:00
Vlad Zahorodnii
e0074d6078
Move wayland utils to shared utils directory
2023-09-30 08:09:34 +00:00
l10n daemon script
2111facfcb
GIT_SILENT Sync po/docbooks with svn
2023-09-30 02:16:59 +00:00
Mihail Milev
48849d4c48
keyboard_layout: Add shortcut to toggle last-used keyboard layout
...
This is a companion to
c01b583e53
that enables the above functionality on Wayland. For Xorg, the
functionality is implemented in plasma-desktop in the above commit.
2023-09-29 19:37:36 +00:00
Fushan Wen
a16506c665
WindowHeapDelegate: restore anchors.horizontalCenter
...
It's still needed, otherwise the text is not center aligned with the
thumbnail.
2023-09-29 20:17:47 +08:00
Vlad Zahorodnii
c342d57116
Handle null input devices in WheelEvent
...
The X11 backend calls some pointer input redirection code without
providing a valid input device.
2023-09-29 12:05:16 +00:00
Fushan Wen
9ef65cbe03
WindowHeapDelegate: fix a binding loop warning
...
It doesn't make sense to use Math.min when the label is always placed at
the bottom center of the thumbnail item.
2023-09-29 19:41:27 +08:00
Fushan Wen
51c517f2b8
plugins/desktopchangeosd: hide osd when Overview effect is active
2023-09-29 18:37:48 +08:00
Fushan Wen
5fc009d64a
scripting: add isEffectActive to query effect active state
2023-09-29 18:37:48 +08:00
Fushan Wen
c974bf0b04
plugins/desktopchangeosd: make Loader become the root item
...
This saves another quick item.
2023-09-29 18:37:48 +08:00
David Edmundson
4b1a90b32a
Implement axis relative direction
...
This is useful for the few cases where wheel events are not for
scrolling. For example adjusting the volume in the tray.
In this case having the metadata that the delta is backwards is
important. From a kwin POV it's just proxying the libinput
isNaturalScroll setting to clients.
Tested against "qtbase/examples/widgets/widgets/mousebuttons" with
modified Qt and changing the setting in the UI.
Not mergable until upstream lands.
Relevant link:
https://gitlab.freedesktop.org/whot/wayland/-/merge_requests/1 /
https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/183
CCBUG: 442789
2023-09-29 13:18:30 +03:00
l10n daemon script
eab335f686
GIT_SILENT Sync po/docbooks with svn
2023-09-29 02:13:18 +00:00
Xaver Hugl
ae09600481
platformsupport/scenes/opengl: add a factory function for EglSwapchainSlot
...
This makes it more obvious that creating slots can fail, and makes it simpler to add
checks for that
2023-09-28 23:27:37 +00:00
Aki Sakurai
0f1da589eb
fix segfault in EglGbmBackend::textureForOutput
2023-09-28 23:52:52 +08:00
Xaver Hugl
d33c6b5409
backends/drm: don't crash if the surface is nullptr
...
CCBUG: 474987
2023-09-28 15:47:45 +02:00
Xaver Hugl
1e6f46eb0c
scene/imageitem: don't crash if uploading a texture fails
...
BUG: 474952
2023-09-28 12:59:53 +02:00
Nicolas Fella
684595dab7
tabbox: Simplify loading switcher from KPackage
...
Let KPackage to the hard work
2023-09-28 08:15:54 +00:00
l10n daemon script
16aa09cd62
GIT_SILENT Sync po/docbooks with svn
2023-09-28 02:15:58 +00:00
Xaver Hugl
d6bc5d9b14
platformsupport/scenes/opengl: don't crash when importing a texture fails
...
CCBUG: 474933
2023-09-27 17:31:12 +00:00
Xaver Hugl
88ab958f4d
backends/drm: fix surface destruction
...
With value semantics, the destructor can be called more often than actually
desired, so this commit ports the DrmEglLayerSurface to use unique pointers to
store surface data instead
2023-09-27 17:17:54 +00:00
Xaver Hugl
b266b08145
outputconfigurationstore: don't select generated modes as the default
...
They're not guaranteed to work, so choosing them as the default mode can
result in a display that doesn't light up or only shows garbage
BUG: 474915
2023-09-27 17:38:25 +02:00
Xaver Hugl
a4dedb64f6
backends/drm: handle multiple OpenGl contexts more correctly
...
In order to destroy resources from a context on the secondary GPU, that
context needs to be current. We also want to destroy the context once it's
no longer used, if the GPU is unplugged etc, so this commit uses shared
and weak pointers to manage the lifetime of the contexts
2023-09-27 14:42:13 +00:00
ivan tkachenko
ed0974b8cb
kcms/screenedges: Drop unused functions
2023-09-27 16:30:05 +03:00
l10n daemon script
8741d2df05
GIT_SILENT Sync po/docbooks with svn
2023-09-27 02:15:51 +00:00