[plasma/kwin] src: Use BottomRight gravity in XdgSurfaceWindow
Vlad Zahorodnii <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 89fc6ba5d627534b708b47044688cfa6f5d35728 by Vlad Zahorodnii.
Committed on 03/08/2026 at 13:24.
Pushed by vladz into branch 'master'.
Use BottomRight gravity in XdgSurfaceWindow
We want the top-left corner remain static when the size changes. This
change makes it rather explicit.
M +1 -1 src/xdgshellwindow.cpp
M +1 -1 src/xdgshellwindow.h
https://invent.kde.org/plasma/kwin/-/commit/89fc6ba5d627534b708b47044688cfa6f5d35728
diff --git a/src/xdgshellwindow.cpp b/src/xdgshellwindow.cpp
index 3269bf768bb..be50886f177 100644
--- a/src/xdgshellwindow.cpp
+++ b/src/xdgshellwindow.cpp
@@ -97,7 +97,7 @@ void XdgSurfaceWindow::sendConfigure()
configureEvent->scale = m_nextTargetScale;
if (!isInteractiveMoveResize()) {
- m_nextGravity = Gravity::None;
+ m_nextGravity = Gravity::BottomRight;
}
m_configureEvents.append(configureEvent);
diff --git a/src/xdgshellwindow.h b/src/xdgshellwindow.h
index 221771a7740..233e986e7f9 100644
--- a/src/xdgshellwindow.h
+++ b/src/xdgshellwindow.h
@@ -81,7 +81,7 @@ protected:
QPointer<PlasmaShellSurfaceInterface> m_plasmaShellSurface;
WindowType m_windowType = WindowType::Normal;
- Gravity m_nextGravity = Gravity::None;
+ Gravity m_nextGravity = Gravity::BottomRight;
private:
void handleConfigureAcknowledged(quint32 serial);