mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-07-14 02:54:31 -04:00
Compare commits
1 Commits
v6.3.4
...
work/d_ed/
Author | SHA1 | Date | |
---|---|---|---|
ea06f1acab |
@ -161,6 +161,11 @@ void QWaylandLayerSurface::setLayer(uint32_t layer)
|
||||
|
||||
void QWaylandLayerSurface::setWindowGeometry(const QRect &geometry)
|
||||
{
|
||||
// if we are setting it to the last size we were configured at, we don't need to do anything
|
||||
if (geometry.size() == m_pendingSize) {
|
||||
return;
|
||||
}
|
||||
|
||||
const bool horizontallyConstrained = m_interface->anchors().testFlags({Window::AnchorLeft, Window::AnchorRight});
|
||||
const bool verticallyConstrained = m_interface->anchors().testFlags({Window::AnchorTop, Window::AnchorBottom});
|
||||
|
||||
|
Reference in New Issue
Block a user