mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-06 15:00:44 +09:00
Removed flatpak KWin title blocker in the overlay
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#include "../include/HyprlandWorkaround.hpp"
|
#include "../include/HyprlandWorkaround.hpp"
|
||||||
#include "include/Process.hpp"
|
#include "../include/Process.hpp"
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@@ -7,7 +7,6 @@
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <array>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
|
|||||||
@@ -551,11 +551,13 @@ namespace gsr {
|
|||||||
show_notification("Wayland doesn't support GPU Screen Recorder UI properly,\nthings may not work as expected. Use X11 if you experience issues.", notification_error_timeout_seconds, mgl::Color(255, 255, 255), mgl::Color(255, 0, 0), NotificationType::NOTICE, nullptr, NotificationLevel::ERROR);
|
show_notification("Wayland doesn't support GPU Screen Recorder UI properly,\nthings may not work as expected. Use X11 if you experience issues.", notification_error_timeout_seconds, mgl::Color(255, 255, 255), mgl::Color(255, 0, 0), NotificationType::NOTICE, nullptr, NotificationLevel::ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_window_manager_name(x11_dpy).find("Hyprland") != std::string::npos) {
|
const std::string wm_name = get_window_manager_name(x11_dpy);
|
||||||
|
|
||||||
|
if (wm_name.find("Hyprland") != std::string::npos) {
|
||||||
start_hyprland_listener_thread();
|
start_hyprland_listener_thread();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_window_manager_name(x11_dpy) == "KWin") {
|
if (wm_name == "KWin") {
|
||||||
start_kwin_helper_thread();
|
start_kwin_helper_thread();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1981,15 +1983,11 @@ namespace gsr {
|
|||||||
const bool is_hyprland = wm_name.find("Hyprland") != std::string::npos;
|
const bool is_hyprland = wm_name.find("Hyprland") != std::string::npos;
|
||||||
const bool is_kwin = wm_name == "KWin";
|
const bool is_kwin = wm_name == "KWin";
|
||||||
|
|
||||||
const bool inside_flatpak = getenv("FLATPAK_ID") != NULL;
|
|
||||||
|
|
||||||
if (is_hyprland) {
|
if (is_hyprland) {
|
||||||
focused_window_name = get_current_hyprland_window_title();
|
focused_window_name = get_current_hyprland_window_title();
|
||||||
}
|
} else if (is_kwin) {
|
||||||
else if (is_kwin && !inside_flatpak) {
|
|
||||||
focused_window_name = get_current_kwin_window_title();
|
focused_window_name = get_current_kwin_window_title();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if(focused_window_name.empty())
|
if(focused_window_name.empty())
|
||||||
focused_window_name = get_focused_window_name(display, WindowCaptureType::FOCUSED, false);
|
focused_window_name = get_focused_window_name(display, WindowCaptureType::FOCUSED, false);
|
||||||
if(focused_window_name.empty())
|
if(focused_window_name.empty())
|
||||||
|
|||||||
Reference in New Issue
Block a user