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
bfc94ce9
Commit
bfc94ce9
authored
Mar 23, 2016
by
Martin Flöser
Browse files
[server] Improve variable naming
transformFactorChanged -> transforChanged. It's not a factor. Reviewed-By: sebas
parent
610fbc67
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wayland/surface_interface.cpp
View file @
bfc94ce9
...
...
@@ -240,7 +240,7 @@ void SurfaceInterface::Private::swapStates(State *source, State *target, bool em
const
bool
opaqueRegionChanged
=
source
->
opaqueIsSet
;
const
bool
inputRegionChanged
=
source
->
inputIsSet
;
const
bool
scaleFactorChanged
=
source
->
scaleIsSet
&&
(
target
->
scale
!=
source
->
scale
);
const
bool
transform
Factor
Changed
=
source
->
transformIsSet
&&
(
target
->
transform
!=
source
->
transform
);
const
bool
transformChanged
=
source
->
transformIsSet
&&
(
target
->
transform
!=
source
->
transform
);
const
bool
shadowChanged
=
source
->
shadowIsSet
;
const
bool
blurChanged
=
source
->
blurIsSet
;
const
bool
contrastChanged
=
source
->
contrastIsSet
;
...
...
@@ -312,7 +312,7 @@ void SurfaceInterface::Private::swapStates(State *source, State *target, bool em
target
->
scale
=
source
->
scale
;
target
->
scaleIsSet
=
true
;
}
if
(
transform
Factor
Changed
)
{
if
(
transformChanged
)
{
target
->
transform
=
source
->
transform
;
target
->
transformIsSet
=
true
;
}
...
...
@@ -328,7 +328,7 @@ void SurfaceInterface::Private::swapStates(State *source, State *target, bool em
if
(
scaleFactorChanged
)
{
emit
q
->
scaleChanged
(
target
->
scale
);
}
if
(
transform
Factor
Changed
)
{
if
(
transformChanged
)
{
emit
q
->
transformChanged
(
target
->
transform
);
}
if
(
bufferChanged
&&
emitChanged
)
{
...
...
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