xwayland: move to hyprland impl (#6086)

This commit is contained in:
Vaxry 2024-05-25 22:43:51 +02:00 committed by GitHub
parent a71207434c
commit addd3e7f1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 2956 additions and 707 deletions

View file

@ -15,3 +15,7 @@ bool IDataSource::used() {
void IDataSource::markUsed() {
wasUsed = true;
}
eDataSourceType IDataSource::type() {
return DATA_SOURCE_TYPE_WAYLAND;
}

View file

@ -5,6 +5,11 @@
#include <cstdint>
#include "../../helpers/signal/Signal.hpp"
enum eDataSourceType {
DATA_SOURCE_TYPE_WAYLAND = 0,
DATA_SOURCE_TYPE_X11,
};
class IDataSource {
public:
IDataSource() {}
@ -19,6 +24,7 @@ class IDataSource {
virtual bool used();
virtual void markUsed();
virtual void error(uint32_t code, const std::string& msg) = 0;
virtual eDataSourceType type();
struct {
CSignal destroy;