From dbdc30da7b1e5228e34d36448c28b357f8a44dbb Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 6 Apr 2021 12:51:33 +0300 Subject: [PATCH] wayland: Return a type of NET::Unknown for popups This is to ensure that isNormalWindow() returns false for popups. One could argue that we abuse netwm window types, on the other hand, we don't know the exact type of popups and NET::Unknown is the closest type. --- src/xdgshellclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdgshellclient.cpp b/src/xdgshellclient.cpp index 2e7069be19..cf6df2bce9 100644 --- a/src/xdgshellclient.cpp +++ b/src/xdgshellclient.cpp @@ -1777,7 +1777,7 @@ NET::WindowType XdgPopupClient::windowType(bool direct, int supported_types) con { Q_UNUSED(direct) Q_UNUSED(supported_types) - return NET::Normal; + return NET::Unknown; } bool XdgPopupClient::hasPopupGrab() const