Aleix Pol
b755e6d91b
Fix using --scale on kwin_wayland windowed mode
2020-08-18 10:55:21 +00:00
Aleix Pol
3733e3e77f
Remove embedded implementation of the Virtual Keyboard
2020-08-18 10:55:21 +00:00
Aleix Pol
be22876348
Don't double-delete Window::handle
...
It also gets deleted when cleaning up the Workspace.
Found using ASAN.
2020-08-14 16:51:46 +02:00
Aleix Pol
71de41a570
Don't leak screens when cleaning up
...
Found using ASAN.
2020-08-14 16:50:39 +02:00
Vlad Zahorodnii
4ce853e8e4
Prettify license headers
2020-08-07 19:57:56 +00:00
Vlad Zahorodnii
1fb9f6f13a
Switch to SPDX license markers
...
The main advantage of SPDX license identifiers over the traditional
license headers is that it's more difficult to overlook inappropriate
licenses for kwin, for example GPL 3. We also don't have to copy a
lot of boilerplate text.
In order to create this change, I ran licensedigger -r -c from the
toplevel source directory.
2020-08-07 19:57:56 +00:00
Andrey Butirsky
307a9bc559
Avoid crash in KWin on Session leave
...
BUG: 420077
- hunk of original commit e8a1f8ecc
seems was lost during a94be708e
merge,
so restoring it again
- add missing check
Original Differential Revision: https://phabricator.kde.org/D28889
2020-08-06 12:21:03 +00:00
Andreas Haratzis
159fbc5ec4
Fix clipped shadows on useraction menus, when wayland and desktop scaling is enabled.
2020-08-05 11:54:54 +00:00
Vlad Zahorodnii
e7d02ad355
Introduce X11 default screen property in Application
...
This spares unnecessary looping through all available X11 screens.
2020-08-05 08:48:00 +00:00
Aleix Pol
d4cd2b5a6a
Account for OpenGLWindow::windowPixmap returning nullptr sometimes
2020-07-31 19:49:15 +02:00
Vlad Zahorodnii
d4ec18d844
Fix build
2020-07-29 15:35:50 +03:00
Chaojiang Luo
def9817a7e
fix:Check image map nullptr error
...
The map may be failed, we should check the image map is succeed first.
Signed-off-by: luochaojiang <luochaojiang@uniontech.com>
2020-07-29 12:11:17 +00:00
Aleix Pol
03b12d1dfc
drm: Use introspection to print enums
...
Removes a bit of code and allows to list the supported
transformations on the same line, which is useful to be able to
grep over the output.
2020-07-29 10:39:47 +00:00
Vlad Zahorodnii
2103b999e7
screencast: Address minor issues
2020-07-28 18:38:49 +00:00
Aleix Pol
02fc40fa4a
Make sure we don't leak the QPlatformFontDatabase using smart pointers
...
Found it when running KWin on ASAN
2020-07-28 08:19:41 +00:00
l10n daemon script
e15004ff98
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"
2020-07-28 06:11:46 +02:00
Aleix Pol
4eda4d2b5d
drm: prevent cursor buffer leakage
...
Use smart pointers to make sure we don't dereference valid pointers.
2020-07-27 09:29:11 +00:00
Aleix Pol
edb6159396
drm: we must not call showCursor when softwareCursor is on
...
Otherwise we'll show a dangling cursor but otherwise the cursor will be
updated by other code paths, so we end up with a weird cursor in the
middle of the screen that doesn't move.
2020-07-27 09:29:11 +00:00
Vlad Zahorodnii
e7b8a5ad5e
Remove remote-access leftovers
...
We've switched to PipeWire for screen casting \o/.
2020-07-23 18:19:49 +03:00
Aleix Pol
4ddefd37bd
screencasting: Remove deprecated RemoteAccessManager interface
...
In favour of zkde_screencast_unstable_v1
2020-07-23 13:14:31 +02:00
Aleix Pol
02042908aa
screencasting: implement wayland output streaming for egl and wayland backends
2020-07-23 13:14:31 +02:00
Aleix Pol
42e543c5b2
screencasting: implement intefraces to create dmabuf textures
2020-07-23 13:14:22 +02:00
Aleix Pol
27ea1b9527
screencasting: Expose necessary information to implement efficient screencasting
2020-07-23 13:14:22 +02:00
l10n daemon script
a1c0d43deb
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"
2020-07-23 06:10:20 +02:00
Aleix Pol
7f1abd5dad
Allow testing transformations on windowed KWin
2020-07-21 12:03:12 +00:00
Vlad Zahorodnii
036ad759e0
[wayland] Adapt to SurfaceInterface changes
2020-07-15 12:46:28 +00:00
Adrien Faveraux
bb138d7668
Adapt EglStream to KwaylandServer
2020-07-14 10:09:43 +00:00
Andreas Haratzis
6c9026628c
Fix DrmOutput sometimes being freed with a pending pageflip, often when waking from sleep.
...
It is possible for updateOutputs to be called when a pageflip is pending.
Freeing a DrmOutput with a pending pageflip is not allowed (see ~DrmOutput assert - the page flip handler will be called on the freed memory, possibly leading to use-after-free).
This works around the problem by delaying the destruction with teardown().
BUG: 422460
2020-07-07 18:33:28 -07:00
Chaojiang Luo
0ef5ddfd47
[drm] Do not blank crtc in atomic mode
...
In atomic setting mode, when external display tears down, it will blank
crtc with dump buffer by legacy api, then re-plug the external display,
the blank can not be removed. We think the blank is not needed in atomic
mode setting.
Signed-off-by: Chaojiang Luo <chaojiangluo@163.com>
2020-07-03 12:09:34 +08:00
Aleix Pol
e1bf133de7
Fix support for systems with age disabled
...
If no damage is supported, repaint all the output rather than nothing.
2020-06-22 09:46:27 +00:00
Vlad Zahorodnii
cb7a9456c0
[wayland] Rework Xcursor theme loading code
...
Currently in order to load an Xcursor theme, kwin uses libwayland api,
which looks really awkward because of the way how the compositor talks
to itself via the internal connection.
The main motivation behind this change is to limit the usage of kwayland
client api in kwin.
2020-06-18 07:14:58 +00:00
l10n daemon script
c10fe06d06
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"
2020-06-18 05:44:57 +02:00
Vlad Zahorodnii
f79d4ba05f
Merge branch 'Plasma/5.19'
2020-06-17 18:07:23 +03:00
Vlad Zahorodnii
cff2070ab2
Merge branch 'Plasma/5.18' into Plasma/5.19
2020-06-17 18:07:12 +03:00
l10n daemon script
8027ccd6d6
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"
2020-06-17 16:54:45 +02:00
Vlad Zahorodnii
96774e79e7
[x11] Create egl scene textures with right size
...
Or client-side decorated clients will be rendered incorrectly.
2020-06-17 17:52:17 +03:00
l10n daemon script
0e117c49a1
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"
2020-06-17 14:12:29 +02:00
Vlad Zahorodnii
da6c775d11
Merge branch 'Plasma/5.19'
2020-06-17 11:05:27 +03:00
Vlad Zahorodnii
bc2df9f84b
[x11] Provide physical dimensions for outputs
...
Since ScreenEdge no longer uses physicalDpiX() and physicalDpiY() from
the QPaintDevice class in favor of our own helpers, we need to ensure
that the X11 platform provides valid output physical dimensions.
BUG: 422816
FIXED-IN: 5.19.2
2020-06-17 10:53:12 +03:00
l10n daemon script
ce5b9c3612
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"
2020-06-11 09:38:33 +02:00
Vlad Zahorodnii
cb4dc0ff9d
[scene] Make the scene window a qobject
...
Since the scene window is not a QObject, we cannot connect toplevel's
signals directly to the scene window's slots.
2020-06-10 09:13:35 +03:00
l10n daemon script
f18deb69f1
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"
2020-06-09 09:19:42 +02:00
Fabian Vogt
c2126f9ce1
Merge branch 'Plasma/5.19'
2020-06-07 21:56:32 +02:00
Fabian Vogt
13810088cc
Merge branch 'Plasma/5.18' into Plasma/5.19
2020-06-07 21:55:51 +02:00
Fabian Vogt
ec602e0c2a
Fix the Plastik decoration with Qt 5.15
...
The trick in qmldir no longer works with Qt 5.15, so use a more reliable
approach. This way works with Qt 5.15 and also on previous versions of Qt.
2020-06-07 18:05:21 +02:00
l10n daemon script
29915632df
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"
2020-06-04 05:12:36 +02:00
Vlad Zahorodnii
9e797cf943
[scene] Introduce helpers for mapping between different coordinate spaces
...
We currently deal with three distinct coordinate spaces - the window
pixmap coordinate space, the window coordinate space, and the buffer
pixel coordinate space.
This change introduces a couple of helper methods to make it easier
to map points from the window pixmap space to the other two spaces.
The main motivation behind the new helpers is to break the direct
relationship between the surface-local coordinates and buffer pixel
coordinates for wayland surfaces.
2020-06-03 10:00:48 +03:00
Méven Car
464203c60e
Clean #if version check blocks
...
Since 08a21ae7b6
we now depend on Qt 5.14
2020-05-28 11:43:29 +00:00
Méven Car
5c3e03259a
DrmOutput: Ensure waylandOutput dpms mode matches DrmOutputs
...
After 797ccca48c
It appeard WaylandOutput (OutputInterface) would never get their Dpms
mode.
2020-05-27 10:07:39 +02:00
Méven Car
f0f465ccbd
Wayland: avoid binding disabled outputs to surfaces
...
We don't need to bind disabled outputs to surfaces that overlaps them.
This prevents error down the line and warnings about ignoring surface.enter events with Qt.
BUG: 419749
2020-05-26 17:18:11 +02:00