From bca7804bb6e1bf5ce5a99b9ae4806be25e36993c Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sat, 27 Apr 2024 12:43:12 +0100 Subject: internal: Window storage rework - part 1 (#5762) * Window storage rework - part 1 * format * remove useless include * fix pch * format * fix crash in dwindle * fix vram leak * prefer .expired() for bool checks --- src/protocols/TearingControl.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/protocols/TearingControl.hpp') diff --git a/src/protocols/TearingControl.hpp b/src/protocols/TearingControl.hpp index 219a5e2d..e2975462 100644 --- a/src/protocols/TearingControl.hpp +++ b/src/protocols/TearingControl.hpp @@ -27,8 +27,8 @@ class CTearingControl { void updateWindow(); SP resource; - CWindow* pWindow = nullptr; - wpTearingControlV1PresentationHint hint = WP_TEARING_CONTROL_V1_PRESENTATION_HINT_VSYNC; + PHLWINDOWREF pWindow; + wpTearingControlV1PresentationHint hint = WP_TEARING_CONTROL_V1_PRESENTATION_HINT_VSYNC; friend class CTearingControlProtocol; }; @@ -43,7 +43,7 @@ class CTearingControlProtocol : public IWaylandProtocol { void onManagerResourceDestroy(wl_resource* res); void onControllerDestroy(CTearingControl* control); void onGetController(wl_client* client, wl_resource* resource, uint32_t id, wlr_surface* surf); - void onWindowDestroy(CWindow* pWindow); + void onWindowDestroy(PHLWINDOW pWindow); // std::vector> m_vManagers; -- cgit v1.2.3