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
0ded63c4
Commit
0ded63c4
authored
Feb 04, 2022
by
Fushan Wen
Browse files
effects: Don't emit `showingDesktopChanged` when `animated` is false
parent
c85bb35c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/effects.cpp
View file @
0ded63c4
...
...
@@ -139,8 +139,12 @@ EffectsHandlerImpl::EffectsHandlerImpl(Compositor *compositor, Scene *scene)
Workspace
*
ws
=
Workspace
::
self
();
VirtualDesktopManager
*
vds
=
VirtualDesktopManager
::
self
();
connect
(
ws
,
&
Workspace
::
showingDesktopChanged
,
this
,
&
EffectsHandlerImpl
::
showingDesktopChanged
);
connect
(
ws
,
&
Workspace
::
showingDesktopChanged
,
this
,
[
this
](
bool
showing
,
bool
animated
)
{
if
(
animated
)
{
Q_EMIT
showingDesktopChanged
(
showing
);
}
});
connect
(
ws
,
&
Workspace
::
currentDesktopChanged
,
this
,
[
this
](
int
old
,
AbstractClient
*
c
)
{
const
int
newDesktop
=
VirtualDesktopManager
::
self
()
->
current
();
if
(
old
!=
0
&&
newDesktop
!=
old
)
{
...
...
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