gsr-overlay > gsr-ui, 2

This commit is contained in:
dec05eba
2024-10-20 22:46:28 +02:00
parent d84054ecbb
commit 57977f29e1
3 changed files with 6 additions and 6 deletions

View File

@@ -82,7 +82,7 @@ int main(void) {
pid_t overlay_pid = -1; pid_t overlay_pid = -1;
fprintf(stderr, "gsr overlay is now ready, waiting for inputs. Press alt+z to show/hide the overlay\n"); fprintf(stderr, "gsr ui is now ready, waiting for inputs. Press alt+z to show/hide the ui\n");
XEvent xev; XEvent xev;
for(;;) { for(;;) {
@@ -105,9 +105,9 @@ int main(void) {
} }
if(overlay_pid == -1) { if(overlay_pid == -1) {
fprintf(stderr, "launch overlay\n"); fprintf(stderr, "launch ui\n");
// TODO: window_with_input_focus // TODO: window_with_input_focus
const char *args[] = { "gsr-overlay", NULL }; const char *args[] = { "gsr-ui", NULL };
exec_program(args, &overlay_pid); exec_program(args, &overlay_pid);
} }
} }

View File

@@ -482,7 +482,7 @@ namespace gsr {
} }
int exit_code = -1; int exit_code = -1;
// The process is no longer a child process since gsr overlay has restarted // The process is no longer a child process since gsr ui has restarted
if(errno == ECHILD) { if(errno == ECHILD) {
errno = 0; errno = 0;
kill(gpu_screen_recorder_process, 0); kill(gpu_screen_recorder_process, 0);

View File

@@ -110,7 +110,7 @@ int main(int argc, char **argv) {
window_create_params.render_api = MGL_RENDER_API_EGL; window_create_params.render_api = MGL_RENDER_API_EGL;
mgl::Window window; mgl::Window window;
if(!window.create("gsr overlay", window_create_params)) if(!window.create("gsr ui", window_create_params))
startup_error("failed to create window"); startup_error("failed to create window");
unsigned char data = 2; // Prefer being composed to allow transparency unsigned char data = 2; // Prefer being composed to allow transparency
@@ -133,7 +133,7 @@ int main(int argc, char **argv) {
// overlay.toggle_show(); // overlay.toggle_show();
// }); // });
//fprintf(stderr, "info: gsr overlay is now ready, waiting for inputs. Press alt+z to show/hide the overlay\n"); //fprintf(stderr, "info: gsr ui is now ready, waiting for inputs. Press alt+z to show/hide the overlay\n");
mgl::Event event; mgl::Event event;
mgl::Clock frame_delta_clock; mgl::Clock frame_delta_clock;