From 04f8029fccacedf542d06cba94b073277d7610d1 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 31 Jul 2022 13:14:56 +0200 Subject: [PATCH] fix minor XDG issue --- src/events/Windows.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 403448b2..7d3c259a 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -601,11 +601,11 @@ void Events::listener_newXDGSurface(wl_listener* listener, void* data) { // A window got opened const auto XDGSURFACE = (wlr_xdg_surface*)data; - Debug::log(LOG, "New XDG Surface created. (class: %s)", XDGSURFACE->toplevel->app_id); - if (XDGSURFACE->role != WLR_XDG_SURFACE_ROLE_TOPLEVEL) return; + Debug::log(LOG, "New XDG Surface created. (class: %s)", XDGSURFACE->toplevel->app_id); + const auto PNEWWINDOW = g_pCompositor->m_vWindows.emplace_back(std::make_unique()).get(); PNEWWINDOW->m_uSurface.xdg = XDGSURFACE;