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
3cec7e63
Commit
3cec7e63
authored
Apr 29, 2022
by
Vlad Zahorodnii
Browse files
Drop Window::setClientShown()
It's unused.
parent
2fdb55b1
Pipeline
#169813
passed with stage
in 18 minutes and 8 seconds
Changes
4
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/window.cpp
View file @
3cec7e63
...
...
@@ -802,11 +802,6 @@ bool Window::isTransient() const
return
false
;
}
void
Window
::
setClientShown
(
bool
shown
)
{
Q_UNUSED
(
shown
)
}
xcb_timestamp_t
Window
::
userTime
()
const
{
return
XCB_TIME_CURRENT_TIME
;
...
...
src/window.h
View file @
3cec7e63
...
...
@@ -1016,8 +1016,6 @@ public:
}
virtual
void
setFullScreen
(
bool
set
,
bool
user
=
true
);
virtual
void
setClientShown
(
bool
shown
);
QRect
geometryRestore
()
const
;
virtual
MaximizeMode
maximizeMode
()
const
;
virtual
MaximizeMode
requestedMaximizeMode
()
const
;
...
...
src/x11window.cpp
View file @
3cec7e63
...
...
@@ -2188,28 +2188,6 @@ void X11Window::fetchIconicName()
}
}
void
X11Window
::
setClientShown
(
bool
shown
)
{
if
(
isZombie
())
{
return
;
// Don't change shown status if this client is being deleted
}
if
(
shown
!=
hidden
)
{
return
;
// nothing to change
}
hidden
=
!
shown
;
if
(
shown
)
{
map
();
takeFocus
();
autoRaise
();
FocusChain
::
self
()
->
update
(
this
,
FocusChain
::
MakeFirst
);
}
else
{
unmap
();
// Don't move tabs to the end of the list when another tab get's activated
FocusChain
::
self
()
->
update
(
this
,
FocusChain
::
MakeLast
);
addWorkspaceRepaint
(
visibleGeometry
());
}
}
void
X11Window
::
getMotifHints
()
{
const
bool
wasClosable
=
isCloseable
();
...
...
src/x11window.h
View file @
3cec7e63
...
...
@@ -258,14 +258,6 @@ public:
StrutRect
strutRect
(
StrutArea
area
)
const
override
;
bool
hasStrut
()
const
override
;
/**
* If shown is true the client is mapped and raised, if false
* the client is unmapped and hidden, this function is called
* when the tabbing group of the client switches its visible
* client.
*/
void
setClientShown
(
bool
shown
)
override
;
bool
isClientSideDecorated
()
const
;
Xcb
::
Property
fetchFirstInTabBox
()
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