If the provided id doesn't have the expected format, the parts list will
have one or none items and parts[1] is going to crash.
SENTRY: KWIN-7K1
(cherry picked from commit 7d57497ad6)
Co-authored-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
Otherwise the textures will be too small, and the result blurry
BUG: 497571
(cherry picked from commit b6e6000d97)
Co-authored-by: Xaver Hugl <xaver.hugl@gmail.com>
`destinationSize` is stored in `d->m_cachedSize` so we need to test
`d->m_cachedSize` against `destinationSize` rather than `targetSize`.
(cherry picked from commit 10aaf96572)
Co-authored-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
we only enable an output if we do declare it's enabled = true.
(cherry picked from commit d3a2a8ea6e)
Co-authored-by: zhenyan huang <huangzhenyan@uniontech.com>
When the unlock happens before the frame is presented (for example due to grace
time) we can get into a state where the session will be re-locked but no
lockscreen shown.
(cherry picked from commit 9b05a7e6a7)
Co-authored-by: David Redondo <kde@david-redondo.de>
CompositorWayland will call the present() function even if the beginFrame()
fails, in which case, m_buffer can be null. Also, the present function
has no code to reset m_buffer after it has finished using it.
SENTRY: KWIN-6JD
(cherry picked from commit 1573657c2d)
Co-authored-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
xdg-toplevel doesn't support fractional sizes natively, so when a
configure event is sent, the fractional part is going to be stripped
away.
XdgToplevelWindow::moveResizeInternal() has no matching code to strip
away the fractional part so it could send a configure event when it's
not needed.
(cherry picked from commit f2cc8d75cf)
Co-authored-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
The wl_pointer.leave event should be sent only if the entered surface has
no data devices associated with it (i.e. it's owned by Xwayland), otherwise
Xwayland won't be able to receive new pointer position and the source X
drag client won't be able to move the drag icon window.
(cherry picked from commit 0451ac046f)
Co-authored-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
If the new position the thumbnail was dropped intersects the geometry of
an heap in any way, then execute the animation, otherwise skip it
(the case of drop on a desktop thumbnails in the overview)
previous patch attempted that but with not completely correct logic
BUG:496646
(cherry picked from commit 0e9f1e721c)
0e9f1e72 effects/overview: Animate if the thumbnail is dropped in an heap
Co-authored-by: Marco Martin <notmart@gmail.com>