Add a new setExclusiveEdge call in the protocol

This can be used to disambiguate the exclusive edge when the anchors are
on a corner (so there  would be 2 candidates)

it's quite quick and dirty mostly to understand if we do want to push
for something along the lines


(cherry picked from commit ad5246f0d0)
This commit is contained in:
Marco Martin
2024-01-26 11:38:44 +00:00
committed by Vlad Zahorodnii
parent 47539db4b3
commit 1abc1f381f
6 changed files with 53 additions and 3 deletions

View File

@ -33,6 +33,7 @@ public:
~Window() override;
enum Anchor {
AnchorNone = 0,
AnchorTop = 1, ///< The top edge of the anchor rectangle
AnchorBottom = 2, ///< The bottom edge of the anchor rectangle
AnchorLeft = 4, ///< The left edge of the anchor rectangle
@ -79,6 +80,9 @@ public:
void setExclusiveZone(int32_t zone);
int32_t exclusionZone() const;
void setExclusiveEdge(Window::Anchor edge);
Window::Anchor exclusiveEdge() const;
void setMargins(const QMargins &margins);
QMargins margins() const;
@ -121,6 +125,7 @@ public:
Q_SIGNALS:
void anchorsChanged();
void exclusionZoneChanged();
void exclusiveEdgeChanged();
void marginsChanged();
void keyboardInteractivityChanged();
void layerChanged();