Client: Close xdg popups using QWSI::handleCloseEvent()

This shouldn't matter in practice, the main motivation behind this
change is to make window closing code consistent both for xdg-toplevels
and xdg-popups.

Change-Id: I74ef11ddbaf942cb545bb04baf7b35979adde81c
Reviewed-by: David Redondo <qt@david-redondo.de>
This commit is contained in:
Vlad Zahorodnii 2024-04-05 12:59:10 +03:00
parent c8451104de
commit a3f4b0671f

View File

@ -288,7 +288,7 @@ void QWaylandXdgSurface::Popup::xdg_popup_configure(int32_t x, int32_t y, int32_
void QWaylandXdgSurface::Popup::xdg_popup_popup_done()
{
m_xdgSurface->m_window->window()->close();
QWindowSystemInterface::handleCloseEvent(m_xdgSurface->m_window->window());
}
QWaylandXdgSurface::QWaylandXdgSurface(QWaylandXdgShell *shell, ::xdg_surface *surface, QWaylandWindow *window)