mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-16 04:23:49 -07:00
Enables explicit sync by default for most platforms `misc:no_direct_scanout` -> `render:direct_scanout`
14 lines
229 B
C++
14 lines
229 B
C++
#pragma once
|
|
|
|
#include <functional>
|
|
|
|
// calls a function when it goes out of scope
|
|
class CScopeGuard {
|
|
public:
|
|
CScopeGuard(const std::function<void()>& fn_);
|
|
~CScopeGuard();
|
|
|
|
private:
|
|
std::function<void()> fn;
|
|
};
|