commit 13cc2373efc335f0d27911628464905d501b8948
parent 18b1fb07fdd9759145dfa66f21c808e9e6c8cff4
Author: deurzen <m.deurzen@tum.de>
Date: Tue, 21 Sep 2021 03:43:13 +0200
updates floating and unmanageable window types
Diffstat:
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/winsys/xdata/xconnection.cc b/src/winsys/xdata/xconnection.cc
@@ -1017,8 +1017,19 @@ yield:
bool
XConnection::must_manage_window(winsys::Window window)
{
- static const std::vector<winsys::WindowType> ignore_types
- = { winsys::WindowType::Dock, winsys::WindowType::Toolbar };
+ static const std::vector<winsys::WindowType> ignore_types = {
+ winsys::WindowType::Desktop,
+ winsys::WindowType::Dock,
+ winsys::WindowType::Toolbar,
+ winsys::WindowType::Menu,
+ winsys::WindowType::Splash,
+ winsys::WindowType::DropdownMenu,
+ winsys::WindowType::PopupMenu,
+ winsys::WindowType::Tooltip,
+ winsys::WindowType::Notification,
+ winsys::WindowType::Combo,
+ winsys::WindowType::Dnd,
+ };
XWindowAttributes wa;
return XGetWindowAttributes(mp_dpy, window, &wa)
@@ -1037,8 +1048,6 @@ XConnection::must_free_window(winsys::Window window)
static const std::vector<winsys::WindowType> free_types = {
winsys::WindowType::Dialog,
winsys::WindowType::Utility,
- winsys::WindowType::Toolbar,
- winsys::WindowType::Splash
};
std::optional<Index> desktop = get_window_desktop(window);