damage: fix damage on moves / workspace changes
This commit is contained in:
parent
a6d94eafba
commit
d6c4ae71d0
2 changed files with 8 additions and 0 deletions
|
|
@ -876,6 +876,8 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) {
|
|||
|
||||
auto pWorkspace = g_pCompositor->getWorkspaceByID(WORKSPACEID);
|
||||
|
||||
g_pHyprRenderer->damageWindow(PWINDOW);
|
||||
|
||||
if (pWorkspace) {
|
||||
g_pCompositor->moveWindowToWorkspaceSafe(PWINDOW, pWorkspace);
|
||||
const auto PMONITOR = g_pCompositor->getMonitorFromID(pWorkspace->m_iMonitorID);
|
||||
|
|
@ -919,6 +921,8 @@ void CKeybindManager::moveActiveToWorkspaceSilent(std::string args) {
|
|||
if (WORKSPACEID == PWINDOW->m_iWorkspaceID)
|
||||
return;
|
||||
|
||||
g_pHyprRenderer->damageWindow(PWINDOW);
|
||||
|
||||
auto pWorkspace = g_pCompositor->getWorkspaceByID(WORKSPACEID);
|
||||
const auto OLDMIDDLE = PWINDOW->middle();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue