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
892059cd
Commit
892059cd
authored
Apr 27, 2022
by
Vlad Zahorodnii
Browse files
Rename Window::effect_window to Window::m_effectWindow
parent
22e5c8a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/window.cpp
View file @
892059cd
...
...
@@ -71,7 +71,7 @@ Window::Window()
,
m_internalId
(
QUuid
::
createUuid
())
,
m_client
()
,
is_shape
(
false
)
,
effect
_w
indow
(
nullptr
)
,
m_
effect
W
indow
(
nullptr
)
,
m_clientMachine
(
new
ClientMachine
(
this
))
,
m_wmClientLeader
(
XCB_WINDOW_NONE
)
,
m_skipCloseAnimation
(
false
)
...
...
@@ -181,9 +181,9 @@ void Window::copyToDeleted(Window *c)
m_client
.
reset
(
c
->
m_client
,
false
);
ready_for_painting
=
c
->
ready_for_painting
;
is_shape
=
c
->
is_shape
;
effect
_w
indow
=
c
->
effect
_w
indow
;
if
(
effect
_w
indow
!=
nullptr
)
{
effect
_w
indow
->
setWindow
(
this
);
m_
effect
W
indow
=
c
->
m_
effect
W
indow
;
if
(
m_
effect
W
indow
!=
nullptr
)
{
m_
effect
W
indow
->
setWindow
(
this
);
}
m_shadow
=
c
->
m_shadow
;
if
(
m_shadow
)
{
...
...
@@ -342,7 +342,7 @@ bool Window::setupCompositing()
return
false
;
}
effect
_w
indow
=
new
EffectWindowImpl
(
this
);
m_
effect
W
indow
=
new
EffectWindowImpl
(
this
);
updateShadow
();
Compositor
::
self
()
->
scene
()
->
addToplevel
(
this
);
...
...
@@ -363,7 +363,7 @@ void Window::finishCompositing(ReleaseReason releaseReason)
if
(
m_shadow
&&
m_shadow
->
toplevel
()
==
this
)
{
// otherwise it's already passed to Deleted, don't free data
deleteShadow
();
}
if
(
effect
_w
indow
&&
effect
_w
indow
->
window
()
==
this
)
{
// otherwise it's already passed to Deleted, don't free data
if
(
m_
effect
W
indow
&&
m_
effect
W
indow
->
window
()
==
this
)
{
// otherwise it's already passed to Deleted, don't free data
deleteEffectWindow
();
}
}
...
...
@@ -443,8 +443,8 @@ void Window::deleteShadow()
void
Window
::
deleteEffectWindow
()
{
delete
effect
_w
indow
;
effect
_w
indow
=
nullptr
;
delete
m_
effect
W
indow
;
m_
effect
W
indow
=
nullptr
;
}
int
Window
::
screen
()
const
...
...
src/window.h
View file @
892059cd
...
...
@@ -1875,7 +1875,7 @@ private:
QUuid
m_internalId
;
Xcb
::
Window
m_client
;
bool
is_shape
;
EffectWindowImpl
*
effect
_w
indow
;
EffectWindowImpl
*
m_
effect
W
indow
;
Shadow
*
m_shadow
=
nullptr
;
QByteArray
resource_name
;
QByteArray
resource_class
;
...
...
@@ -2198,12 +2198,12 @@ inline const QRegion &Window::opaqueRegion() const
inline
EffectWindowImpl
*
Window
::
effectWindow
()
{
return
effect
_w
indow
;
return
m_
effect
W
indow
;
}
inline
const
EffectWindowImpl
*
Window
::
effectWindow
()
const
{
return
effect
_w
indow
;
return
m_
effect
W
indow
;
}
inline
bool
Window
::
isOnAllDesktops
()
const
...
...
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