mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 10:26:00 +01:00
parent
164e92f8e3
commit
b7b13623ba
2 changed files with 4 additions and 2 deletions
|
@ -106,7 +106,7 @@ void CPopup::onMap() {
|
||||||
|
|
||||||
CBox box;
|
CBox box;
|
||||||
wlr_surface_get_extends(m_sWLSurface.wlr(), box.pWlr());
|
wlr_surface_get_extends(m_sWLSurface.wlr(), box.pWlr());
|
||||||
box.applyFromWlr().translate(COORDS);
|
box.applyFromWlr().translate(COORDS).expand(4);
|
||||||
g_pHyprRenderer->damageBox(&box);
|
g_pHyprRenderer->damageBox(&box);
|
||||||
|
|
||||||
m_vLastPos = coordsRelativeToParent();
|
m_vLastPos = coordsRelativeToParent();
|
||||||
|
@ -125,7 +125,7 @@ void CPopup::onUnmap() {
|
||||||
|
|
||||||
CBox box;
|
CBox box;
|
||||||
wlr_surface_get_extends(m_sWLSurface.wlr(), box.pWlr());
|
wlr_surface_get_extends(m_sWLSurface.wlr(), box.pWlr());
|
||||||
box.applyFromWlr().translate(COORDS);
|
box.applyFromWlr().translate(COORDS).expand(4);
|
||||||
g_pHyprRenderer->damageBox(&box);
|
g_pHyprRenderer->damageBox(&box);
|
||||||
|
|
||||||
m_pSubsurfaceHead.reset();
|
m_pSubsurfaceHead.reset();
|
||||||
|
|
|
@ -177,6 +177,7 @@ void CSubsurface::onMap() {
|
||||||
|
|
||||||
const auto COORDS = coordsGlobal();
|
const auto COORDS = coordsGlobal();
|
||||||
CBox box{COORDS, m_vLastSize};
|
CBox box{COORDS, m_vLastSize};
|
||||||
|
box.expand(4);
|
||||||
g_pHyprRenderer->damageBox(&box);
|
g_pHyprRenderer->damageBox(&box);
|
||||||
|
|
||||||
if (m_pWindowParent)
|
if (m_pWindowParent)
|
||||||
|
@ -186,6 +187,7 @@ void CSubsurface::onMap() {
|
||||||
void CSubsurface::onUnmap() {
|
void CSubsurface::onUnmap() {
|
||||||
const auto COORDS = coordsGlobal();
|
const auto COORDS = coordsGlobal();
|
||||||
CBox box{COORDS, m_vLastSize};
|
CBox box{COORDS, m_vLastSize};
|
||||||
|
box.expand(4);
|
||||||
g_pHyprRenderer->damageBox(&box);
|
g_pHyprRenderer->damageBox(&box);
|
||||||
|
|
||||||
if (m_sWLSurface.wlr() == g_pCompositor->m_pLastFocus)
|
if (m_sWLSurface.wlr() == g_pCompositor->m_pLastFocus)
|
||||||
|
|
Loading…
Reference in a new issue