mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 08:03:21 +02:00
fix: cleanup includes
This commit is contained in:
parent
94eaf75d09
commit
e26501d84d
9 changed files with 15 additions and 15 deletions
|
@ -1,9 +1,8 @@
|
|||
#include "../globals.hpp"
|
||||
#include "../cursor.hpp"
|
||||
#include "SharedDefs.hpp"
|
||||
#include "debug/Log.hpp"
|
||||
#include "src/render/Renderer.hpp"
|
||||
#include "config.hpp"
|
||||
|
||||
#include <hyprland/src/render/Renderer.hpp>
|
||||
#include <hyprland/src/plugins/PluginAPI.hpp>
|
||||
#include <hyprlang.hpp>
|
||||
#include <stdexcept>
|
||||
|
@ -79,7 +78,7 @@ void finishConfig() {
|
|||
|
||||
void addDispatcher(std::string name, std::function<std::optional<std::string>(Hyprutils::String::CVarList)> handler) {
|
||||
HyprlandAPI::addDispatcherV2(PHANDLE, NAMESPACE + name, [=](std::string in) {
|
||||
auto error = handler(CVarList(in));
|
||||
auto error = handler(Hyprutils::String::CVarList(in));
|
||||
|
||||
SDispatchResult result;
|
||||
if (error.has_value()) {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#pragma once
|
||||
|
||||
#include "ShapeRule.hpp"
|
||||
|
||||
#include <functional>
|
||||
#include <hyprlang.hpp>
|
||||
#include <hyprutils/string/VarList.hpp>
|
||||
#include "ShapeRule.hpp"
|
||||
|
||||
#define NAMESPACE "plugin:dynamic-cursors:"
|
||||
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
#include "globals.hpp"
|
||||
#include "plugins/PluginAPI.hpp"
|
||||
#include <chrono>
|
||||
#include <cmath>
|
||||
#include <hyprlang.hpp>
|
||||
|
||||
#include <hyprland/src/managers/eventLoop/EventLoopTimer.hpp> // required so we don't "unprivate" chrono
|
||||
#define private public
|
||||
#include "src/managers/CursorManager.hpp"
|
||||
#include <hyprland/src/managers/CursorManager.hpp>
|
||||
#undef private
|
||||
|
||||
#include "highres.hpp"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "src/managers/CursorManager.hpp"
|
||||
#include <hyprland/src/managers/CursorManager.hpp>
|
||||
#include <hyprland/src/render/Texture.hpp>
|
||||
#include <hyprland/src/helpers/memory/Memory.hpp>
|
||||
#include <hyprcursor/hyprcursor.hpp>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include "utils.hpp"
|
||||
#include "../config/config.hpp"
|
||||
#include <hyprland/src/Compositor.hpp>
|
||||
#include <hyprland/src/render/Renderer.hpp>
|
||||
|
||||
EModeUpdate CModeStretch::strategy() {
|
||||
return TICK;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include "utils.hpp"
|
||||
#include "../config/config.hpp"
|
||||
#include <hyprland/src/Compositor.hpp>
|
||||
#include <hyprland/src/render/Renderer.hpp>
|
||||
|
||||
EModeUpdate CModeTilt::strategy() {
|
||||
return TICK;
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
#include "../globals.hpp"
|
||||
#include "../config/config.hpp"
|
||||
#include "src/config/ConfigManager.hpp"
|
||||
#include "src/helpers/AnimatedVariable.hpp"
|
||||
#include "src/managers/AnimationManager.hpp"
|
||||
#include "src/managers/EventManager.hpp"
|
||||
#include "Shake.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
#include <hyprland/src/Compositor.hpp>
|
||||
#include <hyprland/src/debug/Log.hpp>
|
||||
#include <hyprland/src/managers/AnimationManager.hpp>
|
||||
#include <hyprland/src/managers/EventManager.hpp>
|
||||
#include <hyprutils/animation/AnimationConfig.hpp>
|
||||
#include <hyprland/src/render/Renderer.hpp>
|
||||
|
||||
CShake::CShake() {
|
||||
// the timing and the bezier are quite crucial, as things will break down if they are just changed slighly
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#include "helpers/AnimatedVariable.hpp"
|
||||
#include <bits/getopt_ext.h>
|
||||
#include <hyprland/src/helpers/AnimatedVariable.hpp>
|
||||
#include <hyprutils/animation/AnimatedVariable.hpp>
|
||||
#include <hyprutils/math/Vector2D.hpp>
|
||||
#include <vector>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "../globals.hpp"
|
||||
#include <GLES2/gl2.h>
|
||||
#include <hyprland/src/defines.hpp> // don't unprivate stuff in here
|
||||
|
||||
#define private public
|
||||
#include <hyprland/src/render/OpenGL.hpp>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue