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
66838ccf
Commit
66838ccf
authored
Sep 02, 2015
by
Martin Flöser
Browse files
Fix compiler warnings
parent
8dc1e73f
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/wayland/compositor_interface.cpp
View file @
66838ccf
...
...
@@ -103,7 +103,7 @@ void CompositorInterface::Private::createSurface(wl_client *client, wl_resource
return
;
}
QObject
::
connect
(
surface
->
client
(),
&
ClientConnection
::
disconnected
,
surface
,
[
surface
]
(
ClientConnection
*
c
)
{
[
surface
]
{
if
(
surface
->
resource
())
{
wl_resource_destroy
(
surface
->
resource
());
delete
surface
;
...
...
@@ -128,7 +128,7 @@ void CompositorInterface::Private::createRegion(wl_client *client, wl_resource *
return
;
}
QObject
::
connect
(
region
->
client
(),
&
ClientConnection
::
disconnected
,
region
,
[
region
]
(
ClientConnection
*
c
)
{
[
region
]
{
if
(
region
->
resource
())
{
wl_resource_destroy
(
region
->
resource
());
delete
region
;
...
...
src/wayland/seat_interface.cpp
View file @
66838ccf
...
...
@@ -552,7 +552,7 @@ static quint32 qtToWaylandButton(Qt::MouseButton button)
// further mapping not possible, 0x120 is BTN_JOYSTICK
});
return
s_buttons
.
value
(
button
,
0
);
}
;
}
bool
SeatInterface
::
isPointerButtonPressed
(
Qt
::
MouseButton
button
)
const
{
...
...
src/wayland/server/logging.cpp
View file @
66838ccf
...
...
@@ -18,4 +18,4 @@ You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#include
"logging_p.h"
Q_LOGGING_CATEGORY
(
KWAYLAND_SERVER
,
"kwayland-server"
,
QtCriticalMsg
)
;
Q_LOGGING_CATEGORY
(
KWAYLAND_SERVER
,
"kwayland-server"
,
QtCriticalMsg
)
src/wayland/tests/paneltest.cpp
View file @
66838ccf
...
...
@@ -132,6 +132,7 @@ void PanelTest::setupRegistry(Registry *registry)
auto
p
=
m_seat
->
createPointer
(
this
);
connect
(
p
,
&
Pointer
::
buttonStateChanged
,
this
,
[
this
]
(
quint32
serial
,
quint32
time
,
quint32
button
,
KWayland
::
Client
::
Pointer
::
ButtonState
state
)
{
Q_UNUSED
(
time
)
Q_UNUSED
(
serial
)
if
(
!
m_windowManagement
)
{
return
;
...
...
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