aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/protocols/TearingControl.hpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-04-27 12:43:12 +0100
committerGitHub <[email protected]>2024-04-27 12:43:12 +0100
commitbca7804bb6e1bf5ce5a99b9ae4806be25e36993c (patch)
treeebd3a578de1dfe11b54f9440cfc3a408ffa6a620 /src/protocols/TearingControl.hpp
parent25aec3ac8ce65ed224f025f8f6dfef73780577a4 (diff)
downloadHyprland-bca7804bb6e1bf5ce5a99b9ae4806be25e36993c.tar.gz
Hyprland-bca7804bb6e1bf5ce5a99b9ae4806be25e36993c.zip
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
Diffstat (limited to 'src/protocols/TearingControl.hpp')
-rw-r--r--src/protocols/TearingControl.hpp6
1 files changed, 3 insertions, 3 deletions
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<CWpTearingControlV1> 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<UP<CWpTearingControlManagerV1>> m_vManagers;