mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-06 23:06:24 +09:00
Test dialog
This commit is contained in:
Submodule depends/mglpp updated: 3c33f0f813...1ce8b2de75
@@ -827,7 +827,7 @@ namespace gsr {
|
|||||||
window_create_params.override_redirect = prevent_game_minimizing;
|
window_create_params.override_redirect = prevent_game_minimizing;
|
||||||
window_create_params.background_color = bg_color;
|
window_create_params.background_color = bg_color;
|
||||||
window_create_params.support_alpha = true;
|
window_create_params.support_alpha = true;
|
||||||
window_create_params.window_type = MGL_WINDOW_TYPE_NORMAL;
|
window_create_params.window_type = MGL_WINDOW_TYPE_DIALOG;
|
||||||
window_create_params.render_api = MGL_RENDER_API_EGL;
|
window_create_params.render_api = MGL_RENDER_API_EGL;
|
||||||
|
|
||||||
if(!window->create("gsr ui", window_create_params))
|
if(!window->create("gsr ui", window_create_params))
|
||||||
@@ -847,6 +847,7 @@ namespace gsr {
|
|||||||
mgl_window *win = window->internal_window();
|
mgl_window *win = window->internal_window();
|
||||||
if(win->num_monitors == 0) {
|
if(win->num_monitors == 0) {
|
||||||
fprintf(stderr, "gsr warning: no monitors found, not showing overlay\n");
|
fprintf(stderr, "gsr warning: no monitors found, not showing overlay\n");
|
||||||
|
window.reset();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1053,7 +1054,7 @@ namespace gsr {
|
|||||||
window->set_visible(true);
|
window->set_visible(true);
|
||||||
|
|
||||||
make_window_sticky(display, window->get_system_handle());
|
make_window_sticky(display, window->get_system_handle());
|
||||||
hide_window_from_taskbar(display, window->get_system_handle());
|
//hide_window_from_taskbar(display, window->get_system_handle());
|
||||||
|
|
||||||
if(default_cursor) {
|
if(default_cursor) {
|
||||||
XFreeCursor(display, default_cursor);
|
XFreeCursor(display, default_cursor);
|
||||||
|
|||||||
Reference in New Issue
Block a user