mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-15 11:25:59 +01:00
f044e4c951
* move monitors to sp * XD
22 lines
577 B
C++
22 lines
577 B
C++
#pragma once
|
|
|
|
#include "../defines.hpp"
|
|
#include "../helpers/Monitor.hpp"
|
|
#include "../helpers/memory/Memory.hpp"
|
|
#include "../helpers/signal/Signal.hpp"
|
|
#include <unordered_map>
|
|
|
|
class CProtocolManager {
|
|
public:
|
|
CProtocolManager();
|
|
~CProtocolManager();
|
|
|
|
bool isGlobalPrivileged(const wl_global* global);
|
|
|
|
private:
|
|
std::unordered_map<std::string, CHyprSignalListener> m_mModeChangeListeners;
|
|
|
|
void onMonitorModeChange(PHLMONITOR pMonitor);
|
|
};
|
|
|
|
inline std::unique_ptr<CProtocolManager> g_pProtocolManager;
|