mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-04-29 20:47:23 +09:00
Prepare for sound. Fix game name being gsr-ui on wayland in some cases when saving video when the ui is open
This commit is contained in:
@@ -1450,7 +1450,8 @@ namespace gsr {
|
||||
Display *display = (Display*)context->connection;
|
||||
const std::string video_filename = filepath_get_filename(video_filepath);
|
||||
|
||||
std::string focused_window_name = get_focused_window_name(display, WindowCaptureType::FOCUSED);
|
||||
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 = "Game";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user