mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
Fix error handling in X11_SetWindowTitle
X11_XChangeProperty return 1 on success.
This commit is contained in:
parent
bc3b98f3ed
commit
8e604a5f12
@ -734,7 +734,7 @@ X11_SetWindowTitle(_THIS, SDL_Window * window)
|
||||
|
||||
status = X11_XChangeProperty(display, data->xwindow, _NET_WM_NAME, UTF8_STRING, 8, 0, (const unsigned char *) title, strlen(title));
|
||||
|
||||
if (status != Success) {
|
||||
if (status != 1) {
|
||||
char *x11_error = NULL;
|
||||
char x11_error_locale[256];
|
||||
if (X11_XGetErrorText(display, status, x11_error_locale, sizeof(x11_error_locale)) == Success)
|
||||
|
Loading…
Reference in New Issue
Block a user