layout/windowTarget: damage before and after moves (#13496)
This commit is contained in:
parent
743dffd638
commit
5cb1281035
1 changed files with 6 additions and 0 deletions
|
|
@ -10,6 +10,9 @@
|
|||
#include "../../Compositor.hpp"
|
||||
#include "../../render/Renderer.hpp"
|
||||
|
||||
#include <hyprutils/utils/ScopeGuard.hpp>
|
||||
|
||||
using namespace Hyprutils::Utils;
|
||||
using namespace Layout;
|
||||
|
||||
SP<ITarget> CWindowTarget::create(PHLWINDOW w) {
|
||||
|
|
@ -34,6 +37,9 @@ void CWindowTarget::setPositionGlobal(const CBox& box) {
|
|||
|
||||
void CWindowTarget::updatePos() {
|
||||
|
||||
g_pHyprRenderer->damageWindow(m_window.lock());
|
||||
CScopeGuard x([this] { g_pHyprRenderer->damageWindow(m_window.lock()); });
|
||||
|
||||
if (!m_space)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue