diff options
author | vaxerski <[email protected]> | 2022-05-29 12:27:45 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-05-29 12:27:45 +0200 |
commit | d0ff0c0990db230999cc918f1d6230c4a18d08c8 (patch) | |
tree | c4fa1342fc535ca5882a54c9253c84dd72cc32ef /src/helpers | |
parent | fdb3f610e564c644ab0fc7fd154562258350084a (diff) | |
download | Hyprland-d0ff0c0990db230999cc918f1d6230c4a18d08c8.tar.gz Hyprland-d0ff0c0990db230999cc918f1d6230c4a18d08c8.zip |
Added basic monitor transforms, has bugs
blur doesnt work on transformed outputs
full damage tracking issues
Diffstat (limited to 'src/helpers')
-rw-r--r-- | src/helpers/Monitor.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp index 0b57700a..95a064c6 100644 --- a/src/helpers/Monitor.hpp +++ b/src/helpers/Monitor.hpp @@ -7,9 +7,10 @@ #include <array> struct SMonitor { - Vector2D vecPosition = Vector2D(0,0); - Vector2D vecSize = Vector2D(0,0); - Vector2D vecPixelSize = Vector2D(0,0); + Vector2D vecPosition = Vector2D(0,0); + Vector2D vecSize = Vector2D(0,0); + Vector2D vecPixelSize = Vector2D(0,0); + Vector2D vecTransformedSize = Vector2D(0,0); bool primary = false; @@ -27,6 +28,7 @@ struct SMonitor { float refreshRate = 60; wlr_output_damage* damage = nullptr; bool needsFrameSkip = false; + wl_output_transform transform = WL_OUTPUT_TRANSFORM_NORMAL; // Double-linked list because we need to have constant mem addresses for signals // We have to store pointers and use raw new/delete because they might be moved between them |