aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-04-25 16:57:11 +0100
committerVaxry <[email protected]>2024-04-25 16:57:11 +0100
commit0652a20bd31de9cd3de6abbbc5f645b0faa77f6d (patch)
tree3c66c237f350348afc4516501996c14ee2e002b5
parent9fc3cb5629bcc006603e4f2f7906c75d393798dc (diff)
downloadHyprland-0652a20bd31de9cd3de6abbbc5f645b0faa77f6d.tar.gz
Hyprland-0652a20bd31de9cd3de6abbbc5f645b0faa77f6d.zip
events: set window initial* before searching for rules
-rw-r--r--src/events/Windows.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 6455c530..44230e2a 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -68,6 +68,8 @@ void Events::listener_mapWindow(void* owner, void* data) {
PWINDOW->m_szTitle = g_pXWaylandManager->getTitle(PWINDOW);
PWINDOW->m_iX11Type = PWINDOW->m_bIsX11 ? (PWINDOW->m_uSurface.xwayland->override_redirect ? 2 : 1) : 1;
PWINDOW->m_bFirstMap = true;
+ PWINDOW->m_szInitialTitle = PWINDOW->m_szTitle;
+ PWINDOW->m_szInitialClass = g_pXWaylandManager->getAppIDClass(PWINDOW);
// check for token
std::string requestedWorkspace = "";
@@ -151,9 +153,6 @@ void Events::listener_mapWindow(void* owner, void* data) {
bool overridingNoFullscreen = false;
bool overridingNoMaximize = false;
- PWINDOW->m_szInitialTitle = g_pXWaylandManager->getTitle(PWINDOW);
- PWINDOW->m_szInitialClass = g_pXWaylandManager->getAppIDClass(PWINDOW);
-
for (auto& r : WINDOWRULES) {
if (r.szRule.starts_with("monitor")) {
try {