Commits on Source (5)
-
Marius Vlad authored
Just like start as fullscreen, let us add a start as maximized as well. It tests out the maximized state and with clients geometry checks. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
01ef3746 -
Marius Vlad authored
A previous patch modified this for fullscreen, but missed out the maximized state. As we check the geometry rather than the buffer dimensions use the same terminology. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
cc877d4b -
Marius Vlad authored
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>
c15699b7 -
Marius Vlad authored
Rather than creating the wl_egl_window at the same time as wl_surface, do it after we get the first configure event. With it, we also defer eglMakeCurrent() as according to the spec, the first time a OpenGL or OpenGL ES context is made current, the viewport and scissor dimensions are set to the size of the draw surface. This is particulary important when attempting to start simple-egl either as fullscreen or as maximized, as not doing so will either incorrectly commit a buffer with the original dimensions, and later on to resize to the correct dimensions (which is the case for fullscreen), or it will terminate the wayland connection abruptly due to xdg-shell protocol violation, with a mismatch for the client's geometry (the case for maximized). Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Suggested-by: Daniel Stone <daniel.stone@collabora.com>
0277046a -
Marius Vlad authored
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>
054aaa5a