simple-egl: Remove uneeded check
display->wm_base is checked right after handling registry object, and with it the globals, so there's no to perform and additional check for xwm_base. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
@@ -399,9 +399,6 @@ create_surface(struct window *window)
|
|||||||
if (!window->frame_sync)
|
if (!window->frame_sync)
|
||||||
eglSwapInterval(display->egl.dpy, 0);
|
eglSwapInterval(display->egl.dpy, 0);
|
||||||
|
|
||||||
if (!display->wm_base)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (window->fullscreen)
|
if (window->fullscreen)
|
||||||
xdg_toplevel_set_fullscreen(window->xdg_toplevel, NULL);
|
xdg_toplevel_set_fullscreen(window->xdg_toplevel, NULL);
|
||||||
else if (window->maximized)
|
else if (window->maximized)
|
||||||
|
|||||||
Reference in New Issue
Block a user