diff options
author | Vlad Zahorodnii <vlad.zahorodnii@kde.org> | 2024-04-05 12:59:10 +0300 |
---|---|---|
committer | Vlad Zahorodnii <vlad.zahorodnii@kde.org> | 2024-04-05 18:35:50 +0300 |
commit | 3b4d4629e583d4718fae5efb25fefe04928b7115 (patch) | |
tree | efd107fbf1709ef069ab7507f86c2986a8be849e | |
parent | 561a2394e1650e274dcaedb1afc09e2ccad1f784 (diff) |
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>
-rw-r--r-- | src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp b/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp index f6428b585..eec89eff7 100644 --- a/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp +++ b/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp @@ -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) |