Add buttons to exit program and to go back to old ui for flatpak

This commit is contained in:
dec05eba
2024-12-29 20:37:11 +01:00
parent 9dd20e2916
commit a119220961
5 changed files with 68 additions and 2 deletions

View File

@@ -56,6 +56,8 @@ namespace gsr {
void save_replay();
void show_notification(const char *str, double timeout_seconds, mgl::Color icon_color, mgl::Color bg_color, NotificationType notification_type);
bool is_open() const;
bool should_exit(std::string &reason) const;
void exit();
private:
void xi_setup();
void handle_xi_events();
@@ -161,5 +163,8 @@ namespace gsr {
std::array<KeyBinding, 1> key_bindings;
bool drawn_first_frame = false;
bool do_exit = false;
std::string exit_reason;
};
}