Fix some -Wunused-variable warnings
This commit is contained in:
parent
b01cfb8514
commit
a32869594e
12 changed files with 10 additions and 13 deletions
|
@ -508,7 +508,6 @@ void DrmOutput::renderCursorOpengl(const RenderTarget &renderTarget, const QSize
|
|||
|
||||
void DrmOutput::renderCursorQPainter(const RenderTarget &renderTarget)
|
||||
{
|
||||
const auto layer = m_pipeline->cursorLayer();
|
||||
const Cursor *cursor = Cursors::self()->currentCursor();
|
||||
const QImage cursorImage = cursor->image();
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ EglOnXBackend::EglOnXBackend(Display *display)
|
|||
setIsDirectRendering(true);
|
||||
}
|
||||
|
||||
EglOnXBackend::EglOnXBackend(xcb_connection_t *connection, Display *display, xcb_window_t rootWindow, int screenNumber, xcb_window_t renderingWindow)
|
||||
EglOnXBackend::EglOnXBackend(xcb_connection_t *connection, Display *display, xcb_window_t rootWindow, xcb_window_t renderingWindow)
|
||||
: AbstractEglBackend()
|
||||
, m_overlayWindow(nullptr)
|
||||
, surfaceHasSubPost(0)
|
||||
|
|
|
@ -29,7 +29,7 @@ class KWIN_EXPORT EglOnXBackend : public AbstractEglBackend
|
|||
|
||||
public:
|
||||
EglOnXBackend(Display *display);
|
||||
explicit EglOnXBackend(xcb_connection_t *connection, Display *display, xcb_window_t rootWindow, int screenNumber, xcb_window_t renderingWindow);
|
||||
explicit EglOnXBackend(xcb_connection_t *connection, Display *display, xcb_window_t rootWindow, xcb_window_t renderingWindow);
|
||||
~EglOnXBackend() override;
|
||||
OverlayWindow *overlayWindow() const override;
|
||||
void init() override;
|
||||
|
|
|
@ -72,7 +72,7 @@ QRegion X11WindowedEglOutput::lastDamage() const
|
|||
}
|
||||
|
||||
X11WindowedEglBackend::X11WindowedEglBackend(X11WindowedBackend *backend)
|
||||
: EglOnXBackend(backend->connection(), backend->display(), backend->rootWindow(), backend->screenNumer(), XCB_WINDOW_NONE)
|
||||
: EglOnXBackend(backend->connection(), backend->display(), backend->rootWindow(), XCB_WINDOW_NONE)
|
||||
, m_backend(backend)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1605,6 +1605,7 @@ QModelIndex DataSourceModel::index(int row, int column, const QModelIndex &paren
|
|||
|
||||
QModelIndex DataSourceModel::parent(const QModelIndex &child) const
|
||||
{
|
||||
Q_UNUSED(child)
|
||||
return QModelIndex();
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ void DataDeviceManagerInterfacePrivate::data_device_manager_create_data_source(R
|
|||
wl_resource_post_no_memory(resource->handle);
|
||||
return;
|
||||
}
|
||||
DataSourceInterface *dataSource = new DataSourceInterface(q, data_source_resource);
|
||||
DataSourceInterface *dataSource = new DataSourceInterface(data_source_resource);
|
||||
Q_EMIT q->dataSourceCreated(dataSource);
|
||||
}
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ void DataSourceInterfacePrivate::data_source_set_actions(Resource *resource, uin
|
|||
}
|
||||
}
|
||||
|
||||
DataSourceInterface::DataSourceInterface(DataDeviceManagerInterface *parent, wl_resource *resource)
|
||||
DataSourceInterface::DataSourceInterface(wl_resource *resource)
|
||||
: d(new DataSourceInterfacePrivate(this, resource))
|
||||
{
|
||||
if (d->resource()->version() < WL_DATA_SOURCE_ACTION_SINCE_VERSION) {
|
||||
|
|
|
@ -51,7 +51,7 @@ public:
|
|||
|
||||
private:
|
||||
friend class DataDeviceManagerInterfacePrivate;
|
||||
explicit DataSourceInterface(DataDeviceManagerInterface *parent, wl_resource *parentResource);
|
||||
explicit DataSourceInterface(wl_resource *resource);
|
||||
|
||||
std::unique_ptr<DataSourceInterfacePrivate> d;
|
||||
};
|
||||
|
|
|
@ -41,7 +41,7 @@ void PrimarySelectionDeviceManagerV1InterfacePrivate::zwp_primary_selection_devi
|
|||
wl_resource_post_no_memory(resource->handle);
|
||||
return;
|
||||
}
|
||||
PrimarySelectionSourceV1Interface *dataSource = new PrimarySelectionSourceV1Interface(q, data_source_resource);
|
||||
PrimarySelectionSourceV1Interface *dataSource = new PrimarySelectionSourceV1Interface(data_source_resource);
|
||||
Q_EMIT q->dataSourceCreated(dataSource);
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ void PrimarySelectionSourceV1InterfacePrivate::zwp_primary_selection_source_v1_d
|
|||
wl_resource_destroy(resource->handle);
|
||||
}
|
||||
|
||||
PrimarySelectionSourceV1Interface::PrimarySelectionSourceV1Interface(PrimarySelectionDeviceManagerV1Interface *parent, ::wl_resource *resource)
|
||||
PrimarySelectionSourceV1Interface::PrimarySelectionSourceV1Interface(::wl_resource *resource)
|
||||
: d(new PrimarySelectionSourceV1InterfacePrivate(this, resource))
|
||||
{
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
|
||||
private:
|
||||
friend class PrimarySelectionDeviceManagerV1InterfacePrivate;
|
||||
explicit PrimarySelectionSourceV1Interface(PrimarySelectionDeviceManagerV1Interface *parent, ::wl_resource *resource);
|
||||
explicit PrimarySelectionSourceV1Interface(::wl_resource *resource);
|
||||
|
||||
std::unique_ptr<PrimarySelectionSourceV1InterfacePrivate> d;
|
||||
};
|
||||
|
|
|
@ -310,9 +310,6 @@ void Workspace::initializeX11()
|
|||
// Select windowmanager privileges
|
||||
selectWmInputEventMask();
|
||||
|
||||
// Compatibility
|
||||
int32_t data = 1;
|
||||
|
||||
if (kwinApp()->operationMode() == Application::OperationModeX11) {
|
||||
m_wasUserInteractionFilter.reset(new WasUserInteractionX11Filter);
|
||||
m_movingClientFilter.reset(new MovingClientX11Filter);
|
||||
|
|
Loading…
Reference in a new issue