mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 18:18:03 +02:00
layout/windowTarget: damage before and after moves (#13496)
This commit is contained in:
parent
779f849991
commit
f58179f1e0
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
Reference in a new issue