From b62e530fdbb419a70886f016c261f4fe681e9297 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 6 Jun 2022 19:43:44 +0200 Subject: [PATCH] Force window style tiled on all xdg windows --- src/events/Windows.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index d1f588ef927..ffe2ac961d8 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -35,6 +35,9 @@ void Events::listener_mapWindow(void* owner, void* data) { PWINDOW->m_szTitle = g_pXWaylandManager->getTitle(PWINDOW); PWINDOW->m_fAlpha = 255.f; + // Set all windows tiled regardless of anything + g_pXWaylandManager->setWindowStyleTiled(PWINDOW, WLR_EDGE_LEFT | WLR_EDGE_RIGHT | WLR_EDGE_TOP | WLR_EDGE_BOTTOM); + // Foreign Toplevel PWINDOW->m_phForeignToplevel = wlr_foreign_toplevel_handle_v1_create(g_pCompositor->m_sWLRToplevelMgr); // TODO: handle foreign events (requests)