void QWaylandDataDeviceManager::leave(void *data,
struct wl_data_device *wl_data_device)
{
+ Q_UNUSED(wl_data_device);
QWaylandDataDeviceManager *data_device_manager = static_cast<QWaylandDataDeviceManager *>(data);
// QWindowSystemInterface::handleDrag(data_device_manager->m_drag_current_event_window->window(),0,QPoint(0,0),Qt::IgnoreAction);
data_device_manager->m_drag_can_drop = false;
void QWaylandDataDeviceManager::drop(void *data,
struct wl_data_device *wl_data_device)
{
+ Q_UNUSED(wl_data_device);
QWaylandDataDeviceManager *data_device_manager = static_cast<QWaylandDataDeviceManager *>(data);
QWindow *window = data_device_manager->m_drag_current_event_window->window();
QMimeData *mime = data_device_manager->m_drag_data_offer;
QPoint point = data_device_manager->m_drag_position;
Qt::DropActions allActions = Qt::CopyAction | Qt::MoveAction | Qt::LinkAction;
+ Q_UNUSED(window);
+ Q_UNUSED(mime);
// QWindowSystemInterface::handleDrop(window,mime,point,allActions);
}
struct wl_data_device *wl_data_device,
struct wl_data_offer *id)
{
+ Q_UNUSED(wl_data_device);
QWaylandDataDeviceManager *handler = static_cast<QWaylandDataDeviceManager *>(data);
QWaylandDataOffer *mime = handler->m_selection_data_offer;
delete mime;
void QWaylandDataDeviceManager::createAndSetSelectionSource(QMimeData *mimeData, QClipboard::Mode mode)
{
+ Q_UNUSED(mode);
QWaylandDataSource *transfer_source = m_selection_data_source;
delete transfer_source;
const char *mime_type,
int32_t fd)
{
+ Q_UNUSED(wl_data_source);
QWaylandDataSource *self = static_cast<QWaylandDataSource *>(data);
QString mimeType = QString::fromLatin1(mime_type);
QByteArray content = QWaylandMimeHelper::getByteArray(self->m_mime_data, mimeType);
int subpixel,
const char *make, const char *model)
{
+ Q_UNUSED(subpixel);
+ Q_UNUSED(make);
+ Q_UNUSED(model);
QWaylandDisplay *waylandDisplay = static_cast<QWaylandDisplay *>(data);
QRect outputRect = QRect(x, y, physicalWidth, physicalHeight);
waylandDisplay->createNewScreen(output,outputRect);
void QWaylandDrag::move(const QMouseEvent *me)
{
+ Q_UNUSED(me);
qFatal("This function should not be called");
}
bool QWaylandDrag::canDrop() const
{
+ return false;
}
void QWaylandDrag::drop(const QMouseEvent *me)
{
+ Q_UNUSED(me);
}
void QWaylandDrag::cancel()
Qt::DropAction QWaylandDrag::executedDropAction() const
{
- Qt::CopyAction;
+ return Qt::CopyAction;
}
shell_surface->m_window->configure(time,edges,0,0,width,height);
}
+void QWaylandShellSurface::popup_done(void *data,
+ struct wl_shell_surface *wl_shell_surface)
+{
+ Q_UNUSED(data);
+ Q_UNUSED(wl_shell_surface);
+}
+
const wl_shell_surface_listener QWaylandShellSurface::m_shell_surface_listener = {
- QWaylandShellSurface::configure
+ QWaylandShellSurface::configure,
+ QWaylandShellSurface::popup_done
};
QWaylandShellSurface(struct wl_shell_surface *shell_surface, QWaylandWindow *window);
struct wl_shell_surface *handle() const { return m_shell_surface; }
+
private:
struct wl_shell_surface *m_shell_surface;
QWaylandWindow *m_window;
uint32_t edges,
int32_t width,
int32_t height);
+ static void popup_done(void *data,
+ struct wl_shell_surface *wl_shell_surface);
static const struct wl_shell_surface_listener m_shell_surface_listener;
};