mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 05:45:59 +01:00
events: set window initial* before searching for rules
This commit is contained in:
parent
9fc3cb5629
commit
0652a20bd3
1 changed files with 2 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue