, m_wayland_window(static_cast<QWaylandWindow *>(window->handle()))
, m_backing_store(backing_store)
, m_margins(3,30,3,3)
- , m_mouseButtons(Qt::NoButton)
, m_hasSetCursor(false)
+ , m_mouseButtons(Qt::NoButton)
{
m_wayland_window->setDecoration(this);
QTextOption option(Qt::AlignHCenter | Qt::AlignVCenter);
void QWaylandDecoration::handleMouse(QWaylandInputDevice *inputDevice, const QPointF &local, const QPointF &global, Qt::MouseButtons b, Qt::KeyboardModifiers mods)
{
+ Q_UNUSED(global);
//figure out what area mouse is in
if (local.y() <= m_margins.top()) {
processMouseTop(inputDevice,local,b,mods);
void QWaylandDecoration::processMouseTop(QWaylandInputDevice *inputDevice, const QPointF &local, Qt::MouseButtons b, Qt::KeyboardModifiers mods)
{
+ Q_UNUSED(mods);
if (local.y() <= m_margins.bottom()) {
if (local.x() <= margins().left()) {
//top left bit
void QWaylandDecoration::processMouseBottom(QWaylandInputDevice *inputDevice, const QPointF &local, Qt::MouseButtons b, Qt::KeyboardModifiers mods)
{
+ Q_UNUSED(mods);
if (local.x() <= margins().left()) {
//bottom left bit
startResize(inputDevice, WL_SHELL_SURFACE_RESIZE_BOTTOM_LEFT,b);