mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-04-15 06:44:54 +09:00
Better detect focused x11 window on wayland, properly get focused game name on wayland
This commit is contained in:
@@ -1452,6 +1452,8 @@ namespace gsr {
|
||||
|
||||
const Window gsr_ui_window = window ? window->get_system_handle() : None;
|
||||
std::string focused_window_name = get_window_name_at_cursor_position(display, gsr_ui_window);
|
||||
if(focused_window_name.empty())
|
||||
focused_window_name = get_focused_window_name(display, WindowCaptureType::FOCUSED);
|
||||
if(focused_window_name.empty())
|
||||
focused_window_name = "Game";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user