Fix compiler warnings
This commit is contained in:
parent
8dc1e73f5d
commit
66838ccf33
4 changed files with 5 additions and 4 deletions
|
@ -103,7 +103,7 @@ void CompositorInterface::Private::createSurface(wl_client *client, wl_resource
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QObject::connect(surface->client(), &ClientConnection::disconnected, surface,
|
QObject::connect(surface->client(), &ClientConnection::disconnected, surface,
|
||||||
[surface] (ClientConnection *c) {
|
[surface] {
|
||||||
if (surface->resource()) {
|
if (surface->resource()) {
|
||||||
wl_resource_destroy(surface->resource());
|
wl_resource_destroy(surface->resource());
|
||||||
delete surface;
|
delete surface;
|
||||||
|
@ -128,7 +128,7 @@ void CompositorInterface::Private::createRegion(wl_client *client, wl_resource *
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QObject::connect(region->client(), &ClientConnection::disconnected, region,
|
QObject::connect(region->client(), &ClientConnection::disconnected, region,
|
||||||
[region] (ClientConnection *c) {
|
[region] {
|
||||||
if (region->resource()) {
|
if (region->resource()) {
|
||||||
wl_resource_destroy(region->resource());
|
wl_resource_destroy(region->resource());
|
||||||
delete region;
|
delete region;
|
||||||
|
|
|
@ -552,7 +552,7 @@ static quint32 qtToWaylandButton(Qt::MouseButton button)
|
||||||
// further mapping not possible, 0x120 is BTN_JOYSTICK
|
// further mapping not possible, 0x120 is BTN_JOYSTICK
|
||||||
});
|
});
|
||||||
return s_buttons.value(button, 0);
|
return s_buttons.value(button, 0);
|
||||||
};
|
}
|
||||||
|
|
||||||
bool SeatInterface::isPointerButtonPressed(Qt::MouseButton button) const
|
bool SeatInterface::isPointerButtonPressed(Qt::MouseButton button) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -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/>.
|
License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
#include "logging_p.h"
|
#include "logging_p.h"
|
||||||
Q_LOGGING_CATEGORY(KWAYLAND_SERVER, "kwayland-server", QtCriticalMsg);
|
Q_LOGGING_CATEGORY(KWAYLAND_SERVER, "kwayland-server", QtCriticalMsg)
|
||||||
|
|
|
@ -132,6 +132,7 @@ void PanelTest::setupRegistry(Registry *registry)
|
||||||
auto p = m_seat->createPointer(this);
|
auto p = m_seat->createPointer(this);
|
||||||
connect(p, &Pointer::buttonStateChanged, this,
|
connect(p, &Pointer::buttonStateChanged, this,
|
||||||
[this] (quint32 serial, quint32 time, quint32 button, KWayland::Client::Pointer::ButtonState state) {
|
[this] (quint32 serial, quint32 time, quint32 button, KWayland::Client::Pointer::ButtonState state) {
|
||||||
|
Q_UNUSED(time)
|
||||||
Q_UNUSED(serial)
|
Q_UNUSED(serial)
|
||||||
if (!m_windowManagement) {
|
if (!m_windowManagement) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue