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
71fd67cc
Commit
71fd67cc
authored
Sep 10, 2015
by
Martin Flöser
Browse files
[server] Move static methods into anonymous namespace
parent
bbfdf3f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wayland/seat_interface.cpp
View file @
71fd67cc
...
...
@@ -164,6 +164,7 @@ SeatInterface::Private *SeatInterface::Private::cast(wl_resource *r)
return
r
?
reinterpret_cast
<
SeatInterface
::
Private
*>
(
wl_resource_get_user_data
(
r
))
:
nullptr
;
}
namespace
{
template
<
typename
T
>
static
T
*
interfaceForSurface
(
SurfaceInterface
*
surface
,
const
QVector
<
T
*>
&
interfaces
)
...
...
@@ -179,6 +180,7 @@ T *interfaceForSurface(SurfaceInterface *surface, const QVector<T*> &interfaces)
}
return
nullptr
;
}
}
PointerInterface
*
SeatInterface
::
Private
::
pointerForSurface
(
SurfaceInterface
*
surface
)
const
{
...
...
@@ -532,6 +534,7 @@ QPointF SeatInterface::focusedPointerSurfacePosition() const
return
d
->
globalPointer
.
focus
.
offset
;
}
namespace
{
static
quint32
qtToWaylandButton
(
Qt
::
MouseButton
button
)
{
static
const
QHash
<
Qt
::
MouseButton
,
quint32
>
s_buttons
({
...
...
@@ -555,6 +558,7 @@ static quint32 qtToWaylandButton(Qt::MouseButton button)
});
return
s_buttons
.
value
(
button
,
0
);
}
}
bool
SeatInterface
::
isPointerButtonPressed
(
Qt
::
MouseButton
button
)
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