Signed-off-by: falkTX <falktx@falktx.com>pull/272/head
| @@ -156,7 +156,7 @@ void Window::PrivateData::init(const uint width, const uint height, const bool r | |||||
| // FIXME this is bad | // FIXME this is bad | ||||
| puglRealize(view); | puglRealize(view); | ||||
| puglX11GlEnter(view, NULL); | |||||
| puglBackendEnter(view); | |||||
| } | } | ||||
| // ----------------------------------------------------------------------- | // ----------------------------------------------------------------------- | ||||
| @@ -93,6 +93,14 @@ const char* puglGetWindowTitle(const PuglView* view) | |||||
| return view->title; | return view->title; | ||||
| } | } | ||||
| // -------------------------------------------------------------------------------------------------------------------- | |||||
| // expose backend enter | |||||
| void puglBackendEnter(PuglView* view) | |||||
| { | |||||
| view->backend->enter(view, NULL); | |||||
| } | |||||
| // -------------------------------------------------------------------------------------------------------------------- | // -------------------------------------------------------------------------------------------------------------------- | ||||
| // set window size without changing frame x/y position | // set window size without changing frame x/y position | ||||
| @@ -37,6 +37,10 @@ PUGL_BEGIN_DECLS | |||||
| PUGL_API const char* | PUGL_API const char* | ||||
| puglGetWindowTitle(const PuglView* view); | puglGetWindowTitle(const PuglView* view); | ||||
| // expose backend enter | |||||
| PUGL_API void | |||||
| puglBackendEnter(PuglView* view); | |||||
| // set window size without changing frame x/y position | // set window size without changing frame x/y position | ||||
| PUGL_API PuglStatus | PUGL_API PuglStatus | ||||
| puglSetWindowSize(PuglView* view, unsigned int width, unsigned int height); | puglSetWindowSize(PuglView* view, unsigned int width, unsigned int height); | ||||