Merge pull request #2955 from t-paul/issue1521

Initialize window name at window creation time (fixes #1521).
This commit is contained in:
Twinaphex 2016-05-06 00:30:22 +02:00
commit 1552975c1d
3 changed files with 4 additions and 3 deletions

View File

@ -152,7 +152,7 @@ void x11_suspend_screensaver(Window wnd)
RARCH_LOG("Suspending screensaver (X11).\n");
snprintf(cmd, sizeof(cmd), "xdg-screensaver suspend %d", (int)wnd);
snprintf(cmd, sizeof(cmd), "xdg-screensaver suspend 0x%x", (int)wnd);
ret = system(cmd);
if (ret == -1)
@ -551,8 +551,7 @@ void x11_update_window_title(void *data)
char buf_fps[128] = {0};
settings_t *settings = config_get_ptr();
if (video_monitor_get_fps(buf, sizeof(buf),
buf_fps, sizeof(buf_fps)))
if (video_monitor_get_fps(buf, sizeof(buf), NULL, 0))
XStoreName(g_x11_dpy, g_x11_win, buf);
if (settings->fps_show)
runloop_msg_queue_push(buf_fps, 1, 1, false);

View File

@ -533,6 +533,7 @@ static bool gfx_ctx_x_set_video_mode(void *data,
}
x11_set_window_attr(g_x11_dpy, g_x11_win);
x11_update_window_title(NULL);
if (fullscreen)
x11_show_mouse(g_x11_dpy, g_x11_win, false);

View File

@ -352,6 +352,7 @@ static bool gfx_ctx_xegl_set_video_mode(void *data,
goto error;
x11_set_window_attr(g_x11_dpy, g_x11_win);
x11_update_window_title(NULL);
if (fullscreen)
x11_show_mouse(g_x11_dpy, g_x11_win, false);