2022-03-17 18:25:16 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "../defines.hpp"
|
2024-02-29 13:03:38 +00:00
|
|
|
#include "../desktop/Subsurface.hpp"
|
2024-02-29 14:26:02 +00:00
|
|
|
#include "../desktop/Popup.hpp"
|
2024-02-29 13:03:38 +00:00
|
|
|
#include "../desktop/WLSurface.hpp"
|
2025-01-17 19:14:55 +01:00
|
|
|
#include "../macros.hpp"
|
|
|
|
|
#include "../desktop/DesktopTypes.hpp"
|
|
|
|
|
#include "memory/Memory.hpp"
|
2024-06-11 17:17:45 +02:00
|
|
|
#include "signal/Signal.hpp"
|
2022-03-17 18:25:16 +01:00
|
|
|
|
2023-01-20 19:44:30 +01:00
|
|
|
class CMonitor;
|
2024-05-03 22:34:10 +01:00
|
|
|
class IPointer;
|
|
|
|
|
class IKeyboard;
|
2024-06-08 10:07:59 +02:00
|
|
|
class CWLSurfaceResource;
|
2023-01-20 19:44:30 +01:00
|
|
|
|
2024-07-21 13:09:54 +02:00
|
|
|
AQUAMARINE_FORWARD(ISwitch);
|
|
|
|
|
|
2022-10-04 20:07:21 +01:00
|
|
|
struct SSwitchDevice {
|
2024-07-21 13:09:54 +02:00
|
|
|
WP<Aquamarine::ISwitch> pDevice;
|
2023-03-16 16:30:22 +00:00
|
|
|
|
2024-07-21 13:09:54 +02:00
|
|
|
struct {
|
|
|
|
|
CHyprSignalListener destroy;
|
|
|
|
|
CHyprSignalListener fire;
|
|
|
|
|
} listeners;
|
2022-10-04 20:07:21 +01:00
|
|
|
|
2023-01-31 00:03:23 +00:00
|
|
|
bool operator==(const SSwitchDevice& other) const {
|
2024-07-21 13:09:54 +02:00
|
|
|
return pDevice == other.pDevice;
|
2022-10-04 20:07:21 +01:00
|
|
|
}
|
|
|
|
|
};
|