Commit 7f4d1120 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Vlad Zahorodnii

Have clients where we've set their position as non-placeable

If the client opted to position them on purpose, don't move them around.
If the geometry of the workspace changes it's their job to react
accordingly.

BUG: 429353
parent bcba2e25
......@@ -547,6 +547,11 @@ bool XdgToplevelClient::isMinimizable() const
return true;
}
bool XdgToplevelClient::isPlaceable() const
{
return !m_plasmaShellSurface || !m_plasmaShellSurface->isPositionSet();
}
bool XdgToplevelClient::isTransient() const
{
return m_isTransient;
......
......@@ -132,6 +132,7 @@ public:
bool isFullScreenable() const override;
bool isMaximizable() const override;
bool isMinimizable() const override;
bool isPlaceable() const override;
bool isTransient() const override;
bool userCanSetFullScreen() const override;
bool userCanSetNoBorder() const override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment