Skip to content
GitLab
Menu
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
3e739ff8
Commit
3e739ff8
authored
Jan 28, 2021
by
Vlad Zahorodnii
Browse files
Simplify InputDeviceHandler::updateDecoration()
parent
afcd2e03
Changes
1
Hide whitespace changes
Inline
Side-by-side
input.cpp
View file @
3e739ff8
...
...
@@ -2752,8 +2752,7 @@ bool InputDeviceHandler::updateDecoration()
auto
*
ac
=
qobject_cast
<
AbstractClient
*>
(
m_at
.
at
);
if
(
ac
&&
ac
->
decoratedClient
())
{
const
QRect
clientRect
=
QRect
(
ac
->
clientPos
(),
ac
->
clientSize
()).
translated
(
ac
->
pos
());
if
(
!
clientRect
.
contains
(
position
().
toPoint
()))
{
if
(
!
ac
->
clientGeometry
().
contains
(
position
().
toPoint
()))
{
// input device above decoration
m_focus
.
decoration
=
ac
->
decoratedClient
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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