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
78700e23
Commit
78700e23
authored
May 27, 2015
by
Martin Flöser
Browse files
Placement::checkArea operates on AbstractClient
parent
da2731be
Changes
2
Hide whitespace changes
Inline
Side-by-side
placement.cpp
View file @
78700e23
...
...
@@ -610,7 +610,7 @@ void Placement::unclutterDesktop()
}
}
QRect
Placement
::
checkArea
(
const
Client
*
c
,
const
QRect
&
area
)
QRect
Placement
::
checkArea
(
const
Abstract
Client
*
c
,
const
QRect
&
area
)
{
if
(
area
.
isNull
())
return
workspace
()
->
clientArea
(
PlacementArea
,
c
->
geometry
().
center
(),
c
->
desktop
());
...
...
placement.h
View file @
78700e23
...
...
@@ -34,6 +34,7 @@ class QObject;
namespace
KWin
{
class
AbstractClient
;
class
Client
;
class
Placement
...
...
@@ -91,7 +92,7 @@ private:
void
place
(
Client
*
c
,
QRect
&
area
,
Policy
policy
,
Policy
nextPlacement
=
Unknown
);
void
placeUnderMouse
(
Client
*
c
,
QRect
&
area
,
Policy
next
=
Unknown
);
void
placeOnMainWindow
(
Client
*
c
,
QRect
&
area
,
Policy
next
=
Unknown
);
QRect
checkArea
(
const
Client
*
c
,
const
QRect
&
area
);
QRect
checkArea
(
const
Abstract
Client
*
c
,
const
QRect
&
area
);
//CT needed for cascading+
struct
DesktopCascadingInfo
{
...
...
Write
Preview
Markdown
is supported
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