diff --git a/src/main.c b/src/main.c index 7eb3a1b..efcd341 100644 --- a/src/main.c +++ b/src/main.c @@ -587,6 +587,11 @@ static void apply_transform( uint32_t *x, uint32_t *y, uint32_t *width, uint32_t *height, enum wl_output_transform transform ) { + + const char *current_desktop = getenv("XDG_CURRENT_DESKTOP"); + if (current_desktop && strcmp(current_desktop, "Hyprland") == 0) { + return; + } uint32_t temp; switch (transform) { diff --git a/src/target_detection.cpp b/src/target_detection.cpp index 9c196de..74ef71f 100644 --- a/src/target_detection.cpp +++ b/src/target_detection.cpp @@ -179,6 +179,10 @@ static void apply_transform( cv::Mat &m, enum wl_output_transform transform, uint32_t &width, uint32_t &height ) { + const char* current_desktop = getenv("XDG_CURRENT_DESKTOP"); + if (current_desktop && strcmp(current_desktop, "Hyprland") == 0) { + return; + } cv::Mat tmp; bool switch_width_height = false;