![]() |
Heaven v0.1.0-1
C++ global-menu library for Wayland sessions
|
Core class representing a Wayland compositor integration. More...
#include "HNCompositor.h"


Public Member Functions | |
| void | setActiveClient (const std::string &dbusId) noexcept |
| Sets the currently active client. | |
Static Public Member Functions | |
| static std::shared_ptr< HNCompositor > | GetOrMake () noexcept |
| Retrieves the singleton compositor instance, creating it if necessary. | |
| static std::shared_ptr< HNCompositor > | Get () noexcept |
| Retrieves the existing compositor instance. | |
Data Fields | |
| CZSignal< const char *, const char * > | onClientRegistered |
| Emitted when a Wayland client is registered. | |
Core class representing a Wayland compositor integration.
This class acts as the bridge between a Wayland compositor and the bar application. It is responsible for:
|
staticnoexcept |
Retrieves the existing compositor instance.
|
staticnoexcept |
Retrieves the singleton compositor instance, creating it if necessary.
|
noexcept |
Sets the currently active client.
This notifies the bar application which client should be considered active.
| dbusId | The DBus identifier of the active client. Passing an empty string ("") clears the active client. |
| CZSignal<const char* , const char* > onClientRegistered |
Emitted when a Wayland client is registered.
This signal provides the association between:
The compositor should store this mapping and later use the DBus identifier when calling setActiveClient().
| privateHandle | Opaque identifier used internally by the compositor to reference the Wayland client. |
| dbusId | DBus identifier associated with the client. |