@ -404,6 +404,8 @@ create_surface(struct window *window)
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 )
xdg_toplevel_set_maximized ( window - > xdg_toplevel ) ;
}
}
static void
static void
@ -806,6 +808,7 @@ usage(int error_code)
fprintf ( stderr , " Usage: simple-egl [OPTIONS] \n \n "
fprintf ( stderr , " Usage: simple-egl [OPTIONS] \n \n "
" -d <us> \t Buffer swap delay in microseconds \n "
" -d <us> \t Buffer swap delay in microseconds \n "
" -f \t Run in fullscreen mode \n "
" -f \t Run in fullscreen mode \n "
" -m \t Run in maximized mode \n "
" -o \t Create an opaque surface \n "
" -o \t Create an opaque surface \n "
" -s \t Use a 16 bpp EGL config \n "
" -s \t Use a 16 bpp EGL config \n "
" -b \t Don't sync to compositor redraw (eglSwapInterval 0) \n "
" -b \t Don't sync to compositor redraw (eglSwapInterval 0) \n "
@ -836,6 +839,8 @@ main(int argc, char **argv)
window . delay = atoi ( argv [ + + i ] ) ;
window . delay = atoi ( argv [ + + i ] ) ;
else if ( strcmp ( " -f " , argv [ i ] ) = = 0 )
else if ( strcmp ( " -f " , argv [ i ] ) = = 0 )
window . fullscreen = 1 ;
window . fullscreen = 1 ;
else if ( strcmp ( " -m " , argv [ i ] ) = = 0 )
window . maximized = 1 ;
else if ( strcmp ( " -o " , argv [ i ] ) = = 0 )
else if ( strcmp ( " -o " , argv [ i ] ) = = 0 )
window . opaque = 1 ;
window . opaque = 1 ;
else if ( strcmp ( " -s " , argv [ i ] ) = = 0 )
else if ( strcmp ( " -s " , argv [ i ] ) = = 0 )