mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 10:20:57 +00:00
Style fixes
This commit is contained in:
parent
2b6fbbdfe0
commit
e12caa94d4
@ -1501,14 +1501,12 @@ static bool gfx_ctx_wl_set_video_mode(void *data,
|
|||||||
xdg_toplevel_set_app_id(wl->xdg_toplevel, "RetroArch");
|
xdg_toplevel_set_app_id(wl->xdg_toplevel, "RetroArch");
|
||||||
xdg_toplevel_set_title(wl->xdg_toplevel, "RetroArch");
|
xdg_toplevel_set_title(wl->xdg_toplevel, "RetroArch");
|
||||||
|
|
||||||
/* Waiting for xdg_toplevel to be configured before starting to draw */
|
|
||||||
wl_surface_commit(wl->surface);
|
wl_surface_commit(wl->surface);
|
||||||
wl->configured = true;
|
wl->configured = true;
|
||||||
|
|
||||||
while (wl->configured) {
|
while (wl->configured) {
|
||||||
wl_display_dispatch(wl->input.dpy);
|
wl_display_dispatch(wl->input.dpy);
|
||||||
}
|
}
|
||||||
/* Waiting for the "initial" set of globals to appear */
|
|
||||||
wl_display_roundtrip(wl->input.dpy);
|
wl_display_roundtrip(wl->input.dpy);
|
||||||
xdg_wm_base_add_listener(wl->xdg_shell, &xdg_shell_listener, NULL);
|
xdg_wm_base_add_listener(wl->xdg_shell, &xdg_shell_listener, NULL);
|
||||||
} else if (wl->zxdg_shell) {
|
} else if (wl->zxdg_shell) {
|
||||||
@ -1521,19 +1519,16 @@ static bool gfx_ctx_wl_set_video_mode(void *data,
|
|||||||
zxdg_toplevel_v6_set_app_id(wl->zxdg_toplevel, "RetroArch");
|
zxdg_toplevel_v6_set_app_id(wl->zxdg_toplevel, "RetroArch");
|
||||||
zxdg_toplevel_v6_set_title(wl->zxdg_toplevel, "RetroArch");
|
zxdg_toplevel_v6_set_title(wl->zxdg_toplevel, "RetroArch");
|
||||||
|
|
||||||
/* Waiting for xdg_toplevel to be configured before starting to draw */
|
|
||||||
wl_surface_commit(wl->surface);
|
wl_surface_commit(wl->surface);
|
||||||
wl->configured = true;
|
wl->configured = true;
|
||||||
|
|
||||||
while (wl->configured) {
|
while (wl->configured) {
|
||||||
wl_display_dispatch(wl->input.dpy);
|
wl_display_dispatch(wl->input.dpy);
|
||||||
}
|
}
|
||||||
/* Waiting for the "initial" set of globals to appear */
|
|
||||||
wl_display_roundtrip(wl->input.dpy);
|
wl_display_roundtrip(wl->input.dpy);
|
||||||
zxdg_shell_v6_add_listener(wl->zxdg_shell, &zxdg_shell_v6_listener, NULL);
|
zxdg_shell_v6_add_listener(wl->zxdg_shell, &zxdg_shell_v6_listener, NULL);
|
||||||
} else if (wl->shell) {
|
} else if (wl->shell) {
|
||||||
wl->shell_surf = wl_shell_get_shell_surface(wl->shell, wl->surface);
|
wl->shell_surf = wl_shell_get_shell_surface(wl->shell, wl->surface);
|
||||||
|
|
||||||
wl_shell_surface_add_listener(wl->shell_surf, &shell_surface_listener, wl);
|
wl_shell_surface_add_listener(wl->shell_surf, &shell_surface_listener, wl);
|
||||||
wl_shell_surface_set_toplevel(wl->shell_surf);
|
wl_shell_surface_set_toplevel(wl->shell_surf);
|
||||||
wl_shell_surface_set_class(wl->shell_surf, "RetroArch");
|
wl_shell_surface_set_class(wl->shell_surf, "RetroArch");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user