From b7da52ec5711e999963df218d4fad69a8025daeb Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 18 Sep 2020 16:05:14 +0300 Subject: Added build options for X11 Build option to use software rendering if running under X11, and another option to set the position of a window only after the window has been shown. The latter is a workaround for an SDL bug regarding window borders affecting the initial position. --- src/ui/window.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ui/window.h') diff --git a/src/ui/window.h b/src/ui/window.h index 4aec2fa7..b067d30e 100644 --- a/src/ui/window.h +++ b/src/ui/window.h @@ -34,6 +34,7 @@ iDeclareTypeConstructionArgs(Window, iRect rect) struct Impl_Window { SDL_Window * win; + iInt2 initialPos; iBool isDrawFrozen; /* avoids premature draws while restoring window state */ SDL_Renderer *render; iWidget * root; -- cgit v1.2.3