mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Apply the same fix to xegl_ctx.c
This commit is contained in:
parent
64686d8106
commit
8356300c3e
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user