Skip to content

Commit

Permalink
[lipstick] Enable building against QtWayland 5.6. Contributes to JB#5…
Browse files Browse the repository at this point in the history
…3151

Adapt to the introduced QWaylandOutput and QWaylandClient classes
and the associated API breakage.

And remove the now unused hardware composer integration and API for the
never implemented fullscreen window direct rendering.
  • Loading branch information
adenexter committed Feb 17, 2021
1 parent 82d9d3a commit 6364f29
Show file tree
Hide file tree
Showing 23 changed files with 114 additions and 2,480 deletions.
2 changes: 0 additions & 2 deletions plugin/lipstickplugin.cpp
Expand Up @@ -33,7 +33,6 @@
#include <compositor/windowpixmapitem.h>
#include <compositor/windowproperty.h>
#include <lipstickapi.h>
#include <hwcimage.h>

static QObject *lipstickApi_callback(QQmlEngine *e, QJSEngine *)
{
Expand All @@ -56,7 +55,6 @@ void LipstickPlugin::registerTypes(const char *uri)
qmlRegisterType<LauncherItem>("org.nemomobile.lipstick", 0, 1, "LauncherItem");
qmlRegisterType<LauncherFolderModelType>("org.nemomobile.lipstick", 0, 1, "LauncherFolderModel");
qmlRegisterType<LauncherFolderItem>("org.nemomobile.lipstick", 0, 1, "LauncherFolderItem");
qmlRegisterType<HwcImage>("org.nemomobile.lipstick", 0, 1, "HwcImage");

qmlRegisterUncreatableType<NotificationPreviewPresenter>("org.nemomobile.lipstick", 0, 1, "NotificationPreviewPresenter", "This type is initialized by HomeApplication");
qmlRegisterUncreatableType<NotificationFeedbackPlayer>("org.nemomobile.lipstick", 0, 1, "NotificationFeedbackPlayer", "This type is initialized by HomeApplication");
Expand Down
10 changes: 10 additions & 0 deletions src/compositor/alienmanager/aliensurface.cpp
Expand Up @@ -12,8 +12,14 @@
**
****************************************************************************/

#include <QtCompositorVersion>

#include <QtCompositor/QWaylandSurface>

#if QTCOMPOSITOR_VERSION >= QT_VERSION_CHECK(5, 6, 0)
#include <QtCompositor/QWaylandClient>
#endif

#include "lipstickcompositor.h"
#include "aliensurface.h"
#include "alienmanager.h"
Expand All @@ -22,7 +28,11 @@
AlienSurface::AlienSurface(AlienClient *client, QWaylandSurface *surface, uint32_t version, uint32_t id, const QString &package)
: QObject(client)
, QWaylandSurfaceInterface(surface)
#if QTCOMPOSITOR_VERSION >= QT_VERSION_CHECK(5, 6, 0)
, QtWaylandServer::alien_surface(surface->client()->client(), id, version)
#else
, QtWaylandServer::alien_surface(reinterpret_cast<wl_client *>(surface->client()), id, version)
#endif
, m_client(client)
, m_hidden(false)
, m_coverized(false)
Expand Down
13 changes: 2 additions & 11 deletions src/compositor/compositor.pri
Expand Up @@ -13,12 +13,7 @@ PUBLICHEADERS += \

HEADERS += \
$$PWD/windowpixmapitem.h \
$$PWD/windowproperty.h \
$$PWD/lipstickrecorder.h \
$$PWD/hwcrenderstage.h \
$$PWD/hwcimage.h \
$$PWD/eglhybrisbuffer.h \
$$PWD/eglhybrisfunctions.h
$$PWD/windowproperty.h

SOURCES += \
$$PWD/lipstickcompositor.cpp \
Expand All @@ -30,11 +25,7 @@ SOURCES += \
$$PWD/windowpixmapitem.cpp \
$$PWD/windowproperty.cpp \
$$PWD/lipsticksurfaceinterface.cpp \
$$PWD/lipstickrecorder.cpp \
$$PWD/hwcrenderstage.cpp \
$$PWD/hwcimage.cpp \
$$PWD/eglhybrisbuffer.cpp \
$$PWD/eglhybrisfunctions.cpp
$$PWD/lipstickrecorder.cpp

DEFINES += QT_COMPOSITOR_QUICK

Expand Down
133 changes: 0 additions & 133 deletions src/compositor/eglhybrisbuffer.cpp

This file was deleted.

72 changes: 0 additions & 72 deletions src/compositor/eglhybrisbuffer.h

This file was deleted.

46 changes: 0 additions & 46 deletions src/compositor/eglhybrisfunctions.cpp

This file was deleted.

59 changes: 0 additions & 59 deletions src/compositor/eglhybrisfunctions.h

This file was deleted.

0 comments on commit 6364f29

Please sign in to comment.