mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-07-15 11:34:25 -04:00
Compare commits
10 Commits
work/david
...
v5.26.4
Author | SHA1 | Date | |
---|---|---|---|
ef5efc5d97 | |||
a921ab332c | |||
c18d8d63df | |||
e82e03a9cc | |||
7df446ed15 | |||
9b5a39922b | |||
91db77acc2 | |||
5af50ac3ee | |||
7bfac45da8 | |||
7bd63669ea |
@ -2,6 +2,8 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
include:
|
include:
|
||||||
|
- https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/reuse-lint.yml
|
||||||
- https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux.yml
|
- https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux.yml
|
||||||
- https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/freebsd.yml
|
- https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/freebsd.yml
|
||||||
- https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux-qt6.yml
|
- https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux-qt6.yml
|
||||||
|
- https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/freebsd-qt6.yml
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
project(layershellqt)
|
project(layershellqt)
|
||||||
set(PROJECT_VERSION "5.25.80")
|
set(PROJECT_VERSION "5.26.4")
|
||||||
set(PROJECT_VERSION_MAJOR 5)
|
set(PROJECT_VERSION_MAJOR 5)
|
||||||
|
|
||||||
set(CMAKE_C_STANDARD 99)
|
set(CMAKE_C_STANDARD 99)
|
||||||
|
|
||||||
set(QT_MIN_VERSION "5.15.2")
|
set(QT_MIN_VERSION "5.15.2")
|
||||||
set(KF5_MIN_VERSION "5.94")
|
set(KF5_MIN_VERSION "5.98.0")
|
||||||
set(KDE_COMPILERSETTINGS_LEVEL "5.82")
|
set(KDE_COMPILERSETTINGS_LEVEL "5.82")
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# SPDX-FileCopyrightText: None
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
maintainer:
|
maintainer:
|
||||||
- vladz
|
- vladz
|
||||||
description: Layer Shell Qt
|
description: Layer Shell Qt
|
||||||
|
@ -5,11 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "../qwaylandlayersurface_p.h"
|
|
||||||
#include "../qwaylandlayershellintegration_p.h"
|
|
||||||
#include <layershellqt_logging.h>
|
#include <layershellqt_logging.h>
|
||||||
#include <private/qwaylandshellsurface_p.h>
|
|
||||||
#include <private/qwaylandwindow_p.h>
|
#include <QPointer>
|
||||||
|
|
||||||
using namespace LayerShellQt;
|
using namespace LayerShellQt;
|
||||||
|
|
||||||
@ -118,23 +116,6 @@ Window::Window(QWindow *window)
|
|||||||
, d(new WindowPrivate(window))
|
, d(new WindowPrivate(window))
|
||||||
{
|
{
|
||||||
s_map.insert(d->parentWindow, this);
|
s_map.insert(d->parentWindow, this);
|
||||||
|
|
||||||
//BEGIN Compat mode
|
|
||||||
window->winId();
|
|
||||||
window->setFlag(Qt::BypassWindowManagerHint);
|
|
||||||
|
|
||||||
auto ww = dynamic_cast<QtWaylandClient::QWaylandWindow *>(d->parentWindow->handle());
|
|
||||||
if (!ww) {
|
|
||||||
qCDebug(LAYERSHELLQT) << "window not a wayland window" << d->parentWindow;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
QWaylandLayerShellIntegration shellIntegration;
|
|
||||||
shellIntegration.initialize(ww->display());
|
|
||||||
shellIntegration.createShellSurface(ww);
|
|
||||||
// we can't block for configure events
|
|
||||||
// a round trip should mean we'll have one by the time we attach the buffer
|
|
||||||
ww->display()->forceRoundTrip();
|
|
||||||
//END compat mode
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Window *Window::get(QWindow *window)
|
Window *Window::get(QWindow *window)
|
||||||
|
@ -37,7 +37,7 @@ QWaylandLayerSurface::QWaylandLayerSurface(QWaylandLayerShell *shell, QtWaylandC
|
|||||||
}
|
}
|
||||||
init(shell->get_layer_surface(window->waylandSurface()->object(), output, interface->layer(), interface->scope()));
|
init(shell->get_layer_surface(window->waylandSurface()->object(), output, interface->layer(), interface->scope()));
|
||||||
connect(interface, &Window::layerChanged, this, [this, interface]() {
|
connect(interface, &Window::layerChanged, this, [this, interface]() {
|
||||||
set_layer(interface->layer());
|
setLayer(interface->layer());
|
||||||
});
|
});
|
||||||
|
|
||||||
set_anchor(interface->anchors());
|
set_anchor(interface->anchors());
|
||||||
|
@ -51,8 +51,7 @@ class BasicWindow : public QRasterWindow
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
// Shell::useLayerShell();
|
Shell::useLayerShell();
|
||||||
qputenv("QT_WAYLAND_USE_BYPASSWINDOWMANAGERHINT", "1");
|
|
||||||
|
|
||||||
QGuiApplication app(argc, argv);
|
QGuiApplication app(argc, argv);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user