diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2022-04-28 10:32:15 +0300 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2022-05-24 22:11:23 +0300 |
commit | f573612d379503c85f106a2f19924bf8f21a11cf (patch) | |
tree | 80c5617508e66b50c679632890029d1e886b7f38 | |
parent | ac83c29e7a2502f578f1513a2548ecf1959a1b96 (diff) | |
download | weston-f573612d379503c85f106a2f19924bf8f21a11cf.tar.gz |
simple-egl: Move set_fullscreen/set_maximized before initial commit
Rather than setting the fullscreen/maximized before initial
wl_surface.commit, make it part of the initial window state.
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Suggested-by: Pekka Paalanen <pekka.paalanen@collabora.com>
(cherry picked from commit 054aaa5a8b4b8a7ba9404eb35d86a1b4f992be15)
-rw-r--r-- | clients/simple-egl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clients/simple-egl.c b/clients/simple-egl.c index e48dbc69..2c7059c0 100644 --- a/clients/simple-egl.c +++ b/clients/simple-egl.c @@ -392,16 +392,16 @@ create_surface(struct window *window) xdg_toplevel_set_app_id(window->xdg_toplevel, "org.freedesktop.weston.simple-egl"); + if (window->fullscreen) + xdg_toplevel_set_fullscreen(window->xdg_toplevel, NULL); + else if (window->maximized) + xdg_toplevel_set_maximized(window->xdg_toplevel); + window->wait_for_configure = true; wl_surface_commit(window->surface); if (!window->frame_sync) eglSwapInterval(display->egl.dpy, 0); - - if (window->fullscreen) - xdg_toplevel_set_fullscreen(window->xdg_toplevel, NULL); - else if (window->maximized) - xdg_toplevel_set_maximized(window->xdg_toplevel); } static void |