mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 15:11:57 -07:00
gamma-control: move to new impl
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
#include "Region.hpp"
|
||||
#include <optional>
|
||||
|
||||
#include "signal/Signal.hpp"
|
||||
|
||||
struct SMonitorRule {
|
||||
std::string name = "";
|
||||
Vector2D resolution = Vector2D(1280, 720);
|
||||
@@ -83,7 +85,6 @@ class CMonitor {
|
||||
bool noFrameSchedule = false;
|
||||
bool scheduledRecalc = false;
|
||||
wl_output_transform transform = WL_OUTPUT_TRANSFORM_NORMAL;
|
||||
bool gammaChanged = false;
|
||||
float xwaylandScale = 1.f;
|
||||
std::array<float, 9> projMatrix = {0};
|
||||
std::optional<Vector2D> forceSize;
|
||||
@@ -120,6 +121,12 @@ class CMonitor {
|
||||
bool frameScheduledWhileBusy = false;
|
||||
} tearingState;
|
||||
|
||||
struct {
|
||||
CSignal destroy;
|
||||
CSignal connect;
|
||||
CSignal disconnect;
|
||||
} events;
|
||||
|
||||
std::array<std::vector<std::unique_ptr<SLayerSurface>>, 4> m_aLayerSurfaceLayers;
|
||||
|
||||
DYNLISTENER(monitorFrame);
|
||||
|
Reference in New Issue
Block a user