Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
CompositorLost.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <cstdint>
7#include <functional>
8
9#include <phosphorwayland_export.h>
10
11namespace PhosphorWayland {
12
41using CompositorLostCallback = std::function<void()>;
42using CompositorLostCookie = std::uint64_t;
43
50
54PHOSPHORWAYLAND_EXPORT void removeCompositorLostCallback(CompositorLostCookie cookie);
55
56} // namespace PhosphorWayland
Definition CompositorLost.h:11
std::uint64_t CompositorLostCookie
Definition CompositorLost.h:42
std::function< void()> CompositorLostCallback
Public seam over the QPA plugin's wlr-layer-shell global-removal signal.
Definition CompositorLost.h:41
PHOSPHORWAYLAND_EXPORT void removeCompositorLostCallback(CompositorLostCookie cookie)
Unregister a callback previously returned by addCompositorLostCallback.
PHOSPHORWAYLAND_EXPORT CompositorLostCookie addCompositorLostCallback(CompositorLostCallback cb)
Register a callback fired when the compositor removes the zwlr_layer_shell_v1 global.