diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-07-23 23:38:50 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-07-23 23:38:58 +0200 |
| commit | 8a4548e4302b1cc00fca368a7cc2e3171516420c (patch) | |
| tree | 335a11ab249d24d5cfce77a2d1a76a2899b9a681 /src/events/Windows.cpp | |
| parent | a5f58a31268da95e36c0918ac75589c05e81b892 (diff) | |
window: drop ack requirement for applying pending reported size
fixes #6533
Diffstat (limited to 'src/events/Windows.cpp')
| -rw-r--r-- | src/events/Windows.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 516ac2ae..a5511e17 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -702,12 +702,7 @@ void Events::listener_commitWindow(void* owner, void* data) { if (!PWINDOW->m_bIsMapped || PWINDOW->isHidden()) return; - if (PWINDOW->m_bIsX11) - PWINDOW->m_vReportedSize = PWINDOW->m_vPendingReportedSize; // apply pending size. We pinged, the window ponged. - else if (PWINDOW->m_pPendingSizeAck.has_value()) { - PWINDOW->m_vReportedSize = PWINDOW->m_pPendingSizeAck->second; - PWINDOW->m_pPendingSizeAck.reset(); - } + PWINDOW->m_vReportedSize = PWINDOW->m_vPendingReportedSize; // apply pending size. We pinged, the window ponged. if (!PWINDOW->m_bIsX11 && !PWINDOW->m_bIsFullscreen && PWINDOW->m_bIsFloating) { const auto MINSIZE = PWINDOW->m_pXDGSurface->toplevel->current.minSize; |
