mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-06 06:50:44 +09:00
Make create_frontpage_ui_components update all ui components
This commit is contained in:
@@ -1139,6 +1139,7 @@ namespace gsr {
|
|||||||
|
|
||||||
update_compositor_texture(*focused_monitor);
|
update_compositor_texture(*focused_monitor);
|
||||||
|
|
||||||
|
visible = true;
|
||||||
create_frontpage_ui_components();
|
create_frontpage_ui_components();
|
||||||
|
|
||||||
// The focused application can be an xwayland application but the cursor can hover over a wayland application.
|
// The focused application can be an xwayland application but the cursor can hover over a wayland application.
|
||||||
@@ -1180,30 +1181,6 @@ namespace gsr {
|
|||||||
if(!is_wlroots && !hyprland_waybar_is_dock)
|
if(!is_wlroots && !hyprland_waybar_is_dock)
|
||||||
window->set_fullscreen(true);
|
window->set_fullscreen(true);
|
||||||
|
|
||||||
visible = true;
|
|
||||||
|
|
||||||
if(gpu_screen_recorder_process > 0) {
|
|
||||||
switch(recording_status) {
|
|
||||||
case RecordingStatus::NONE:
|
|
||||||
break;
|
|
||||||
case RecordingStatus::REPLAY:
|
|
||||||
update_ui_replay_started();
|
|
||||||
break;
|
|
||||||
case RecordingStatus::RECORD:
|
|
||||||
update_ui_recording_started();
|
|
||||||
break;
|
|
||||||
case RecordingStatus::STREAM:
|
|
||||||
update_ui_streaming_started();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(paused)
|
|
||||||
update_ui_recording_paused();
|
|
||||||
|
|
||||||
if(replay_recording)
|
|
||||||
update_ui_recording_started();
|
|
||||||
|
|
||||||
// Wayland compositors have retarded fullscreen animations that we cant disable in a proper way
|
// Wayland compositors have retarded fullscreen animations that we cant disable in a proper way
|
||||||
// without messing up window position.
|
// without messing up window position.
|
||||||
show_overlay_timeout_seconds = prevent_game_minimizing ? 0.0 : 0.15;
|
show_overlay_timeout_seconds = prevent_game_minimizing ? 0.0 : 0.15;
|
||||||
@@ -1467,6 +1444,28 @@ namespace gsr {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if(gpu_screen_recorder_process > 0) {
|
||||||
|
switch(recording_status) {
|
||||||
|
case RecordingStatus::NONE:
|
||||||
|
break;
|
||||||
|
case RecordingStatus::REPLAY:
|
||||||
|
update_ui_replay_started();
|
||||||
|
break;
|
||||||
|
case RecordingStatus::RECORD:
|
||||||
|
update_ui_recording_started();
|
||||||
|
break;
|
||||||
|
case RecordingStatus::STREAM:
|
||||||
|
update_ui_streaming_started();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(paused)
|
||||||
|
update_ui_recording_paused();
|
||||||
|
|
||||||
|
if(replay_recording)
|
||||||
|
update_ui_recording_started();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Overlay::hide() {
|
void Overlay::hide() {
|
||||||
|
|||||||
Reference in New Issue
Block a user