From d08ea692771caa8e385412c2f992089672773e30 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 3 May 2025 12:03:43 +0200 Subject: Keep keyboard led when turning on global hotkeys, move files --- include/CursorTrackerWayland.hpp | 43 ---------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 include/CursorTrackerWayland.hpp (limited to 'include/CursorTrackerWayland.hpp') diff --git a/include/CursorTrackerWayland.hpp b/include/CursorTrackerWayland.hpp deleted file mode 100644 index 1eeee83..0000000 --- a/include/CursorTrackerWayland.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once - -#include "CursorTracker.hpp" -#include -#include - -struct wl_display; -struct wl_registry; -struct wl_output; -struct zxdg_output_manager_v1; -struct zxdg_output_v1; - -namespace gsr { - struct WaylandOutput { - uint32_t wl_name; - struct wl_output *output; - struct zxdg_output_v1 *xdg_output; - mgl::vec2i pos; - mgl::vec2i size; - int32_t transform; - std::string name; - }; - - class CursorTrackerWayland : public CursorTracker { - public: - CursorTrackerWayland(const char *card_path); - CursorTrackerWayland(const CursorTrackerWayland&) = delete; - CursorTrackerWayland& operator=(const CursorTrackerWayland&) = delete; - ~CursorTrackerWayland(); - - void update() override; - std::optional get_latest_cursor_info() override; - - std::vector monitors; - struct zxdg_output_manager_v1 *xdg_output_manager = nullptr; - private: - void set_monitor_outputs_from_xdg_output(struct wl_display *dpy); - private: - int drm_fd = -1; - mgl::vec2i latest_cursor_position; // Position of the cursor within the monitor - int latest_crtc_id = -1; - }; -} \ No newline at end of file -- cgit v1.2.3-70-g09d2