Apply the same fix to xegl_ctx.c

This commit is contained in:
Brandon Wright 2018-04-01 17:44:04 -05:00
parent 64686d8106
commit 8356300c3e
2 changed files with 6 additions and 6 deletions

View File

@ -691,7 +691,7 @@ static bool gfx_ctx_x_set_video_mode(void *data,
RARCH_ERR("[GLX]: Entering true fullscreen failed. Will attempt windowed mode.\n");
}
swa.override_redirect = (true_full) ? True : False;
swa.override_redirect = true_full ? True : False;
if (video_info->monitor_index)
g_x11_screen = video_info->monitor_index - 1;

View File

@ -310,7 +310,7 @@ static bool gfx_ctx_xegl_set_video_mode(void *data,
RARCH_ERR("[X/EGL]: Entering true fullscreen failed. Will attempt windowed mode.\n");
}
swa.override_redirect = (!x11_has_net_wm_fullscreen(g_x11_dpy) && true_full) ? True : False;
swa.override_redirect = true_full ? True : False;
if (video_info->monitor_index)
g_x11_screen = video_info->monitor_index - 1;
@ -341,8 +341,8 @@ static bool gfx_ctx_xegl_set_video_mode(void *data,
g_x11_win = XCreateWindow(g_x11_dpy, RootWindow(g_x11_dpy, vi->screen),
x_off, y_off, width, height, 0,
vi->depth, InputOutput, vi->visual,
CWBorderPixel | CWColormap | CWEventMask |
CWOverrideRedirect, &swa);
CWBorderPixel | CWColormap | CWEventMask,
&swa);
XSetWindowBackground(g_x11_dpy, g_x11_win, 0);
if (fullscreen && settings && settings->bools.video_disable_composition)
@ -374,8 +374,8 @@ static bool gfx_ctx_xegl_set_video_mode(void *data,
{
RARCH_LOG("[X/EGL]: Using true fullscreen.\n");
XMapRaised(g_x11_dpy, g_x11_win);
if (swa.override_redirect == False)
x11_set_net_wm_fullscreen(g_x11_dpy, g_x11_win);
x11_set_net_wm_fullscreen(g_x11_dpy, g_x11_win);
XChangeWindowAttributes(g_x11_dpy, g_x11_win, CWOverrideRedirect, &swa);
}
else if (fullscreen)
{