This commit is contained in:
luboslenco
2025-10-15 19:52:43 +02:00
parent 157dd4a647
commit 265950c533
4 changed files with 11 additions and 6 deletions
+3 -1
View File
@@ -1499,8 +1499,10 @@ void iron_gamepad_rumble(int gamepad, float left, float right) {}
#ifdef WITH_NFD // Has gtk
#include <gtk/gtk.h>
extern void (*iron_save_and_quit)(bool);
#endif
bool _save_and_quit_callback_internal() {
#ifdef WITH_NFD // Has gtk
bool save = false;
XTextProperty text_prop;
XGetTextProperty(x11_ctx.display, x11_ctx.windows[0].window, &text_prop, NET_WM_NAME);
@@ -1528,9 +1530,9 @@ bool _save_and_quit_callback_internal() {
}
}
iron_save_and_quit(save);
#endif
return false;
}
#endif
#include <signal.h>
#include <sys/wait.h>