From 7c7690eb08ccdf899bfcf2166096745614f2c9a4 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 30 Jul 2022 12:42:27 +0200 Subject: [PATCH] windowrules for floating remove hidden flag --- src/events/Windows.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index f6587acb..cda6998c 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -221,6 +221,8 @@ void Events::listener_mapWindow(void* owner, void* data) { PWINDOW->m_vRealSize = Vector2D(SIZEX, SIZEY); g_pXWaylandManager->setWindowSize(PWINDOW, PWINDOW->m_vRealSize.goalv()); + + PWINDOW->m_bHidden = false; } catch (...) { Debug::log(LOG, "Rule size failed, rule: %s -> %s", r.szRule.c_str(), r.szValue.c_str()); } @@ -236,6 +238,8 @@ void Events::listener_mapWindow(void* owner, void* data) { Debug::log(LOG, "Rule move, applying to window %x", PWINDOW); PWINDOW->m_vRealPosition = Vector2D(POSX, POSY) + PMONITOR->vecPosition; + + PWINDOW->m_bHidden = false; } catch (...) { Debug::log(LOG, "Rule move failed, rule: %s -> %s", r.szRule.c_str(), r.szValue.c_str()); }