mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 14:11:59 -07:00
workspaces: refactor class member vars (#10167)
This commit is contained in:
@@ -75,12 +75,12 @@ CPointerConstraint::~CPointerConstraint() {
|
||||
});
|
||||
|
||||
if (pHLSurface)
|
||||
pHLSurface->m_pConstraint.reset();
|
||||
pHLSurface->m_constraint.reset();
|
||||
}
|
||||
|
||||
void CPointerConstraint::sharedConstructions() {
|
||||
if (pHLSurface) {
|
||||
listeners.destroySurface = pHLSurface->events.destroy.registerListener([this](std::any d) {
|
||||
listeners.destroySurface = pHLSurface->m_events.destroy.registerListener([this](std::any d) {
|
||||
pHLSurface.reset();
|
||||
if (active)
|
||||
deactivate();
|
||||
|
Reference in New Issue
Block a user