aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-01-05 17:48:16 +0100
committerdec05eba <dec05eba@protonmail.com>2025-01-05 17:48:16 +0100
commit57ae00063c724a8238fe9f914d756fb00dc0dbf1 (patch)
treef9560e61e231b7abb9cf2ed9fbe0ef04661fbcb2
parentfa5b7a0c751c8d8e37a173df09b7b28733f8df5e (diff)
Test dialog
m---------depends/mglpp0
-rw-r--r--src/Overlay.cpp5
2 files changed, 3 insertions, 2 deletions
diff --git a/depends/mglpp b/depends/mglpp
-Subproject 3c33f0f8136a8cd3844c9dc087daabf16443fa4
+Subproject 1ce8b2de75f334696bc3b0037160ce3623c46e7
diff --git a/src/Overlay.cpp b/src/Overlay.cpp
index dd16243..77bbc3b 100644
--- a/src/Overlay.cpp
+++ b/src/Overlay.cpp
@@ -827,7 +827,7 @@ namespace gsr {
window_create_params.override_redirect = prevent_game_minimizing;
window_create_params.background_color = bg_color;
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;
if(!window->create("gsr ui", window_create_params))
@@ -847,6 +847,7 @@ namespace gsr {
mgl_window *win = window->internal_window();
if(win->num_monitors == 0) {
fprintf(stderr, "gsr warning: no monitors found, not showing overlay\n");
+ window.reset();
return;
}
@@ -1053,7 +1054,7 @@ namespace gsr {
window->set_visible(true);
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) {
XFreeCursor(display, default_cursor);