diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-08-15 17:55:29 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-08-15 17:55:29 +0200 |
| commit | 347a1eb662b13a077ea5ca4bce0fab3665501855 (patch) | |
| tree | f3732559506897808fb6bcc632fd6805db0d4d28 /src/protocols/XDGOutput.hpp | |
| parent | 7c4daee29a353fa7e800c4874ce6d491eda458c3 (diff) | |
xdgoutput: separate logic for zero scaling positions
if a scaled monitor was directly to the left of another monitor, we'd change the size to have zero scaling without pushing other monitors out of the way, creating overlaps in xwayland.
Diffstat (limited to 'src/protocols/XDGOutput.hpp')
| -rw-r--r-- | src/protocols/XDGOutput.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/protocols/XDGOutput.hpp b/src/protocols/XDGOutput.hpp index 13b7029c..2469e600 100644 --- a/src/protocols/XDGOutput.hpp +++ b/src/protocols/XDGOutput.hpp @@ -1,6 +1,7 @@ #pragma once #include "WaylandProtocol.hpp" +#include <optional> class CMonitor; @@ -8,6 +9,8 @@ struct SXDGOutput { CMonitor* monitor = nullptr; std::unique_ptr<CWaylandResource> resource; + std::optional<Vector2D> overridePosition; + wl_client* client = nullptr; bool isXWayland = false; }; |
