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
523ad8e2
Commit
523ad8e2
authored
Jan 18, 2021
by
Vlad Zahorodnii
Browse files
effects/zoom: Schedule a repaint when window is damaged
This is needed to make per-screen rendering work correctly.
BUG: 431652
parent
54313d32
Changes
2
Hide whitespace changes
Inline
Side-by-side
effects/zoom/zoom.cpp
View file @
523ad8e2
...
...
@@ -123,6 +123,7 @@ ZoomEffect::ZoomEffect()
timeline
.
setFrameRange
(
0
,
100
);
connect
(
&
timeline
,
&
QTimeLine
::
frameChanged
,
this
,
&
ZoomEffect
::
timelineFrameChanged
);
connect
(
effects
,
&
EffectsHandler
::
mouseChanged
,
this
,
&
ZoomEffect
::
slotMouseChanged
);
connect
(
effects
,
&
EffectsHandler
::
windowDamaged
,
this
,
&
ZoomEffect
::
slotWindowDamaged
);
#if HAVE_ACCESSIBILITY
m_accessibilityIntegration
=
new
ZoomAccessibilityIntegration
(
this
);
...
...
@@ -519,6 +520,13 @@ void ZoomEffect::slotMouseChanged(const QPoint& pos, const QPoint& old, Qt::Mous
}
}
void
ZoomEffect
::
slotWindowDamaged
()
{
if
(
zoom
!=
1.0
)
{
effects
->
addRepaintFull
();
}
}
void
ZoomEffect
::
moveFocus
(
const
QPoint
&
point
)
{
if
(
zoom
==
1.0
)
...
...
effects/zoom/zoom.h
View file @
523ad8e2
...
...
@@ -84,6 +84,7 @@ private Q_SLOTS:
void
slotMouseChanged
(
const
QPoint
&
pos
,
const
QPoint
&
old
,
Qt
::
MouseButtons
buttons
,
Qt
::
MouseButtons
oldbuttons
,
Qt
::
KeyboardModifiers
modifiers
,
Qt
::
KeyboardModifiers
oldmodifiers
);
void
slotWindowDamaged
();
void
recreateTexture
();
private:
void
showCursor
();
...
...
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