fix fractional scale update in moveToWorkspace

This commit is contained in:
Franz Berger 2023-06-05 22:58:51 +02:00
parent 6612197a38
commit 75d9795a06

View file

@ -291,9 +291,12 @@ void CWindow::moveToWorkspace(int workspaceID) {
m_iWorkspaceID = workspaceID;
const auto PMONITOR = g_pCompositor->getMonitorFromID(m_iMonitorID);
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(m_iWorkspaceID);
m_iMonitorID = PWORKSPACE->m_iMonitorID;
const auto PMONITOR = g_pCompositor->getMonitorFromID(m_iMonitorID);
if (PWORKSPACE) {
g_pEventManager->postEvent(SHyprIPCEvent{"movewindow", getFormat("%lx,%s", this, PWORKSPACE->m_szName.c_str())});
EMIT_HOOK_EVENT("moveWindow", (std::vector<void*>{this, PWORKSPACE}));