From 08d6af2caf882247943f0e8518ad782f35d1aba4 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 28 Dec 2022 13:35:18 +0100 Subject: [PATCH 1/2] Remove unused timerid --- src/events/events.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/events/events.hpp b/src/events/events.hpp index 266fa4d..f0693c4 100644 --- a/src/events/events.hpp +++ b/src/events/events.hpp @@ -28,8 +28,6 @@ namespace Events { void redraw(); void setThread(); - inline timer_t timerid; - // For docks etc inline bool nextWindowCentered = false; From 7512a3ab91865b1e11b8c4a9dfdffb25c2b153de Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 28 Dec 2022 13:37:36 +0100 Subject: [PATCH 2/2] Remove librt on macOS --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cfe3ec3..ad9ab7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,9 @@ ELSE() message(STATUS "Configuring Hypr in Release with CMake!") ENDIF(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) -target_link_libraries(Hypr rt) +IF(UNIX AND NOT APPLE) + target_link_libraries(Hypr rt) +ENDIF() set(CPACK_PROJECT_NAME ${PROJECT_NAME}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})