mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-07-14 11:04:20 -04:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
038702e37b | |||
72f91f9119 | |||
01eafc47e9 | |||
1b8392c2c3 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,3 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
|
||||||
# SPDX-FileCopyrightText: none
|
|
||||||
# Ignore the following files
|
# Ignore the following files
|
||||||
.vscode
|
.vscode
|
||||||
*~
|
*~
|
||||||
|
@ -4,14 +4,11 @@
|
|||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
project(layershellqt)
|
project(layershellqt)
|
||||||
set(PROJECT_VERSION "5.23.2")
|
set(PROJECT_VERSION "5.22.3")
|
||||||
set(PROJECT_VERSION_MAJOR 5)
|
set(PROJECT_VERSION_MAJOR 5)
|
||||||
|
|
||||||
set(CMAKE_C_STANDARD 99)
|
|
||||||
|
|
||||||
set(QT_MIN_VERSION "5.15.0")
|
set(QT_MIN_VERSION "5.15.0")
|
||||||
set(KF5_MIN_VERSION "5.86")
|
set(KF5_MIN_VERSION "5.82")
|
||||||
set(KDE_COMPILERSETTINGS_LEVEL "5.82")
|
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
#include "interfaces/shell.h"
|
#include "interfaces/shell.h"
|
||||||
#include "qwaylandlayershell_p.h"
|
#include "qwaylandlayershell_p.h"
|
||||||
#include "qwaylandlayersurface_p.h"
|
#include "qwaylandlayersurface_p.h"
|
||||||
#include "layershellqt_logging.h"
|
|
||||||
|
|
||||||
#include <QtWaylandClient/private/qwaylandscreen_p.h>
|
#include <QtWaylandClient/private/qwaylandscreen_p.h>
|
||||||
#include <QtWaylandClient/private/qwaylandsurface_p.h>
|
#include <QtWaylandClient/private/qwaylandsurface_p.h>
|
||||||
@ -23,14 +22,7 @@ QWaylandLayerSurface::QWaylandLayerSurface(QWaylandLayerShell *shell, QtWaylandC
|
|||||||
LayerShellQt::Window *interface = Window::get(window->window());
|
LayerShellQt::Window *interface = Window::get(window->window());
|
||||||
Q_ASSERT(interface);
|
Q_ASSERT(interface);
|
||||||
|
|
||||||
// Qt will always assign a screen to a window, but if the compositor has no screens available a dummy QScreen object is created
|
init(shell->get_layer_surface(window->waylandSurface()->object(), window->waylandScreen()->output(), interface->layer(), interface->scope()));
|
||||||
// this will not cast to a QWaylandScreen
|
|
||||||
QtWaylandClient::QWaylandScreen *screen = window->waylandScreen();
|
|
||||||
if (screen->isPlaceholder()) {
|
|
||||||
qCWarning(LAYERSHELLQT) << "Creating a layer shell for placeholder screen. This will be positioned incorrectly";
|
|
||||||
}
|
|
||||||
|
|
||||||
init(shell->get_layer_surface(window->waylandSurface()->object(), screen->isPlaceholder() ? nullptr : screen->output(), interface->layer(), interface->scope()));
|
|
||||||
|
|
||||||
Window::Anchors anchors = interface->anchors();
|
Window::Anchors anchors = interface->anchors();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user