zeming huang
2f4005cd67
Avoid creating Unmanaged for reparented window
...
When a mapped window doing reparent, xorg will generate a unmap and map
sequence.
In KWin, If a mapped Unmanaged is doing reparent, KWin will receive a
unmap and map sequence because KWin won't release the Unmanaged
immediately. When the MapNotify comes, its parent is not longer the root
window. However, KWin still create an Unmanaged to manage it. As a
result, a ghost Unmanaged remains in the list.
1 year ago
Xaver Hugl
d9ce40c06f
backends/drm: don't skip colorops when matching the pipeline
...
We combine all possible operations from the pipeline into one hardware color op,
there's no reason to skip any - it just prevents matching a pipeline that could
actually be represented in hardware just fine.
BUG: 494611
1 year ago
Xaver Hugl
8a8c617ddd
backends/drm: transform damage to match the framebuffer
...
Otherwise, the repainted region can be completely wrong, which breaks damage tracking very badly
BUG: 494837
1 year ago
Vlad Zahorodnii
d802b7c32c
Set WAYLAND_DISPLAY before starting wayland server
...
Apparently, zink (when calling gbm_create_device()) may connect to the
wayland server if the WAYLAND_DISPLAY envvar is set and deadlock.
1 year ago
Xaver Hugl
12e44324d5
backends/drm: don't scale infiniteRegion()
...
It can lead to weird issues, like the resulting region being entirely in negative coordinates
CCBUG: 494829
1 year ago
Xaver Hugl
f0c3eed721
backends/drm: fix crash with multi gpu
1 year ago
Vlad Zahorodnii
354d4f78c6
ci: Require tests to pass only on Linux
...
FreeBSD CI is unstable and we lack people who have relevant knowledge
about FreeBSD to debug and address the issue.
1 year ago
l10n daemon script
5a125db085
GIT_SILENT Sync po/docbooks with svn
1 year ago
Vlad Zahorodnii
78bc268876
wayland: Provide pressed keys with keyboard enter event
...
With this, the key events don't need to be forwarded to SeatInterface
when sending key events to an internal window.
1 year ago
Vlad Zahorodnii
82dfdf3ea3
Report correct input timestamps for popup keyboard events
...
SeatInterface::setTimestamp() must be called before sending an event.
1 year ago
Vlad Zahorodnii
21baa3eea8
Make InternalWindowEventFilter::pointerEvent() exclusive
...
If an internal window doesn't accept the event, we should still stop
traversing the event filter chain because we know that the internal
window is the only receiver of pointer events.
1 year ago
Vlad Zahorodnii
88c260ab26
Drop InternalWindowEventFilter::keyEvent()
...
At the moment, normal internal windows cannot take focus, and the ones
that can are handled separately, e.g. in the PopupInputFilter and in the
TabBoxEventFilter.
1 year ago
Xaver Hugl
85485a7344
backends/drm: disable hdr if we removed the capabilities for it
...
That was the intention behind disabling it by default for some drivers, and it also
slightly simplifes the code
BUG: 494706
1 year ago
Xaver Hugl
03b4da31c0
wayland/color management: ignore obviously wrong HDR metadata
...
Some applications provide truly nonsensical luminance values, like 10 million nits.
This adds a basic sanity check to not use that for tone mapping
BUG: 494502
1 year ago
Xaver Hugl
80a91b1a4f
backends/drm: upload custom geometry instead of using glScissor for optimized rendering
...
Empirical data suggests this yields a decent reduction in GPU usage
CCBUG: 477223
1 year ago
Xaver Hugl
de12db7398
backends/drm: restrict damage area to the screen's size
...
Scissor rectangles going outside of the framebuffer cause OpenGL warnings
BUG: 492152
1 year ago
Xaver Hugl
5334682b6e
plugins/screencast: work around implicit sync being broken with llvmpipe
...
This fixes some glitches in virtual machines
1 year ago
Weng Xuetian
9e46767b64
Cleanup InputMethodTest::testV3AutoCommit
...
Since we removed auto commit on input method forwarded key event, just
remove the test for it all together.
1 year ago
l10n daemon script
6c7598df99
GIT_SILENT Sync po/docbooks with svn
1 year ago
Joshua Goins
f09cf6ae17
libinput: Use pen pressure transform before sending tablet events
...
CCBUG: 457705
1 year ago
Joshua Goins
fe9b9ee4c6
libinput: Add pressure curve property for tweaking pen pressure
...
This adds a property backed by the aforementioned CubicCurve class,
which will allow us to assign a curve to transform the pen pressure.
This can be used for small changes like changing the thresholds (beyond
what libinput already does transparently), to radically changing how the
pen pressure is mapped.
CCBUG: 457705
1 year ago
Łukasz Patron
d4241cf70d
backends/x11: Set expected keyboard modifiers for modifier keys
...
This fixes overview toggle when the shortcut is set to a modifier key,
e.g. meta.
1 year ago
Nate Graham
ec119ab3c6
kcms/rules: use value-decrease icon instead of spinbox-decrease
...
Changed in ff1ccc38f1b2d1708935566d3d5e55d30ce57b21 in Breeze Icons,
with compatibility symlinks in place so nothing breaks.
1 year ago
Vlad Zahorodnii
216dd94d5c
Prevent QJSEngine garbage collecting Window
...
The Window object has no QObject parent, and there are functions that
are exposed to scripting api and return Window objects.
1 year ago
l10n daemon script
8373cd2d7f
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
Xaver Hugl
81d1cb13c3
backends/drm: rename LegacyLutColorOp
...
The class also works with new lut drm color operations
1 year ago
Vlad Zahorodnii
1e29e7df82
plugins/eis: Use monotonic clock to generate timestamps
1 year ago
Vlad Zahorodnii
bf73a6af67
backends/fakeinput: Use monotonic clock to generate timestamps
1 year ago
Vlad Zahorodnii
c1d65766e9
Use monotonic clock to generate frame callback timestamps
1 year ago
Weng Xuetian
aa8c55775d
Do not commit pending text upon key event received from input method.
...
A common usecase for this is when preedit is not empty, but key event is
bypassed is when modifier key is pressed. For example, user may want to
send Shift+A to input method, but input method will ignore the Shift key
press and forward shift to application. This allows certain usecase if
application reacts to modifier only key event.
While it "may" causes some issue when input method decide to send key
that produce text when preedit is not empty, this does not happen in
practice and should be considered a bug on input method engine side.
1 year ago
l10n daemon script
86d7868059
GIT_SILENT Sync po/docbooks with svn
1 year ago
Xaver Hugl
1830494db1
backends/drm: if no cursor plane is available, fall back to an overlay plane
...
While we should have more generic overlay plane usage handling, this special case is easy
to deal with until we have that more generic infrastructure
1 year ago
Xaver Hugl
968bc6fb07
input: split up global and inactive inner window actions
...
It makes the code a bit easier to follow
1 year ago
Xaver Hugl
4c0a6afcdd
input: use std::optional for dealing with mouse actions instead of multiple bools
...
It was very confusing logic before
1 year ago
Xaver Hugl
0133431c1d
backends/drm: disable triple buffering on NVidia by default
...
There's some unresolved glitches on multi gpu systems. Until that's taken care of,
triple buffering is disabled by default on NVidia unless the environment variable
KWIN_DRM_DISABLE_TRIPLE_BUFFERING=0 is set
BUG: 494547
BUG: 494407
1 year ago
l10n daemon script
e5c9d5d2ca
GIT_SILENT Sync po/docbooks with svn
1 year ago
l10n daemon script
3c5ce6ec13
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
Vlad Zahorodnii
892f2ba2d9
Port to QJSEngine::setObjectOwnership()
1 year ago
Vlad Zahorodnii
75ad06ea6c
Drop X11Window::wantsSyncCounter()
...
We require new enough Xwayland.
1 year ago
Vlad Zahorodnii
243db5ba3a
Drop HAVE_XWAYLAND_LISTENFD
...
We expect at least Xwayland>=23.1.0, which should include support for
-listenfd.
1 year ago
Vlad Zahorodnii
27cfd0e400
Drop support for WL_SURFACE_ID
...
WL_SURFACE_ID does not provide a reliable way to associate X windows
with wayland surfaces. On the other hand, the xwayland shell protocol
has been in use for quite a while now.
1 year ago
Xaver Hugl
47af438ace
autotests: test that ColorPipeline and OpenGL shader results at least somewhat match
1 year ago
Xaver Hugl
931ebbd8d3
core/colorpipeline: do ICtCp conversion the correct way around
...
Transfer function and inverse transfer function were swapped
1 year ago
Xaver Hugl
ca4ac8c715
core/colorpipeline: use PQ with min. luminance zero for tone mapping
...
Otherwise min. luminance zero can't be represented in the tone mapper
1 year ago
Xaver Hugl
b6c2f9ed7a
core/colorpipeline: fix multiplier+matrix optimization
...
The multiplier needs to be applied after the matrix, the code applied it before
1 year ago
Xaver Hugl
a725756ff6
core/colorpipeline: don't transpose the ICtCp matrix
...
The matrix was already in the right order
1 year ago
Xaver Hugl
1fa3d50e8d
core/colorpipeline: fix tone mapping luminances being switched around
...
The code from before could never reduce the reference luminance
1 year ago
YaoBing Xiao
f1dcd4ea28
remove unused notifyKSplash function
...
Signed-off-by: YaoBing Xiao <xiaoyaobing@uniontech.com>
1 year ago
Vlad Zahorodnii
3b0971c81c
Revert "Add (temporary) code to help with debugging the blur effect crash"
...
This reverts commit 6738473f3d .
It has served its purpose.
1 year ago
Vlad Zahorodnii
c4059ba3f2
Revert "scene: Re-order item list integrity checks"
...
This reverts commit 1df73874fc .
1 year ago