Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
a76704ad
Commit
a76704ad
authored
Oct 13, 2022
by
Vlad Zahorodnii
Browse files
effects/screenshot: Avoid capturing hidden cursor
BUG: 460358
(cherry picked from commit
f4b32c05
)
parent
87c87cbd
Pipeline
#247171
failed with stage
in 16 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/effects/screenshot/screenshot.cpp
View file @
a76704ad
...
...
@@ -378,6 +378,10 @@ QImage ScreenShotEffect::blitScreenshot(const QRect &geometry, qreal devicePixel
void
ScreenShotEffect
::
grabPointerImage
(
QImage
&
snapshot
,
int
xOffset
,
int
yOffset
)
const
{
if
(
effects
->
isCursorHidden
())
{
return
;
}
const
PlatformCursorImage
cursor
=
effects
->
cursorImage
();
if
(
cursor
.
image
().
isNull
())
{
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment