mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-05-19 08:30:22 -07:00
Enables explicit sync by default for most platforms `misc:no_direct_scanout` -> `render:direct_scanout`
11 lines
165 B
C++
11 lines
165 B
C++
#include "ScopeGuard.hpp"
|
|
|
|
CScopeGuard::CScopeGuard(const std::function<void()>& fn_) : fn(fn_) {
|
|
;
|
|
}
|
|
|
|
CScopeGuard::~CScopeGuard() {
|
|
if (fn)
|
|
fn();
|
|
}
|