Skip to content

Commit 26d3a99

Browse files
committed
Fix C89
1 parent 9b8ffb5 commit 26d3a99

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

gfx/common/x11_common.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,13 +810,16 @@ void x11_update_title(void *data)
810810
{
811811
size_t _len;
812812
char title[128];
813+
Atom XA_NET_WM_NAME;
814+
Atom XA_UTF8_STRING;
813815
title[0] = '\0';
814816
_len = video_driver_get_window_title(title, sizeof(title));
815-
Atom XA_NET_WM_NAME = XInternAtom(g_x11_dpy, "_NET_WM_NAME", False);
816-
Atom XA_UTF8_STRING = XInternAtom(g_x11_dpy, "UTF8_STRING", False);
817817

818818
if (title[0])
819819
{
820+
Atom XA_NET_WM_NAME = XInternAtom(g_x11_dpy, "_NET_WM_NAME", False);
821+
Atom XA_UTF8_STRING = XInternAtom(g_x11_dpy, "UTF8_STRING", False);
822+
820823
if (XA_NET_WM_NAME != None && XA_UTF8_STRING != None)
821824
{
822825
XChangeProperty(g_x11_dpy, g_x11_win, XA_NET_WM_NAME, XA_UTF8_STRING,

0 commit comments

Comments
 (0)