remove unnecessary call, add bandaid comment

This commit is contained in:
briaguya 2022-05-23 16:24:34 -04:00
commit e4c7775f20
2 changed files with 1 additions and 3 deletions

View file

@ -11,7 +11,6 @@
#include <X11/extensions/Xrandr.h>
#include <X11/XKBlib.h>
#include <X11/Xatom.h>
#include <SDL2/SDL.h>
#include "gfx_window_manager_api.h"
#include "gfx_screen_config.h"
@ -441,7 +440,6 @@ static void gfx_glx_handle_events(void) {
}
}
if (xev.type == ClientMessage && (Atom)xev.xclient.data.l[0] == glx.atom_wm_delete_window) {
SDL_Quit();
exit(0);
}
}

View file

@ -250,7 +250,7 @@ static void gfx_sdl_handle_events(void) {
}
break;
case SDL_QUIT:
SDL_Quit();
SDL_Quit(); // bandaid fix for linux window closing issue
exit(0);
}
}