Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions gfx/common/x11_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,11 +810,27 @@ void x11_update_title(void *data)
{
size_t _len;
char title[128];
title[0] = '\0';
_len = video_driver_get_window_title(title, sizeof(title));
Atom XA_NET_WM_NAME;
Atom XA_UTF8_STRING;
title[0] = '\0';
_len = video_driver_get_window_title(title, sizeof(title));

if (title[0])
XChangeProperty(g_x11_dpy, g_x11_win, XA_WM_NAME, XA_STRING,
{
Atom XA_NET_WM_NAME = XInternAtom(g_x11_dpy, "_NET_WM_NAME", False);
Atom XA_UTF8_STRING = XInternAtom(g_x11_dpy, "UTF8_STRING", False);

if (XA_NET_WM_NAME != None && XA_UTF8_STRING != None)
{
XChangeProperty(g_x11_dpy, g_x11_win, XA_NET_WM_NAME, XA_UTF8_STRING,
8, PropModeReplace, (const unsigned char*)title, _len);
}
else
{
XChangeProperty(g_x11_dpy, g_x11_win, XA_WM_NAME, XA_STRING,
8, PropModeReplace, (const unsigned char*)title, _len);
}
}
}

bool x11_input_ctx_new(bool true_full)
Expand Down
Loading