From 57ae00063c724a8238fe9f914d756fb00dc0dbf1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 5 Jan 2025 17:48:16 +0100 Subject: Test dialog --- depends/mglpp | 2 +- src/Overlay.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/depends/mglpp b/depends/mglpp index 3c33f0f..1ce8b2d 160000 --- a/depends/mglpp +++ b/depends/mglpp @@ -1 +1 @@ -Subproject commit 3c33f0f8136a8cd3844c9dc087daabf16443fa40 +Subproject commit 1ce8b2de75f334696bc3b0037160ce3623c46e79 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); -- cgit v1.2.3