|
|
|
@@ -111,8 +111,18 @@ void puglWin32RestoreWindow(PuglView* view); |
|
|
|
// win32 specific, center view based on parent coordinates (if there is one) |
|
|
|
void puglWin32ShowCentered(PuglView* view); |
|
|
|
|
|
|
|
#elif defined(HAVE_X11) |
|
|
|
#elif defined(HAVE_X11) || defined(HAVE_WAYLAND) |
|
|
|
|
|
|
|
#define DGL_USING_X11_OR_WAYLAND |
|
|
|
|
|
|
|
// custom flags for world creation |
|
|
|
#define PUGL_WORLD_BACKEND_X11 0x1000 |
|
|
|
#define PUGL_WORLD_BACKEND_WAYLAND 0x2000 |
|
|
|
|
|
|
|
// X11 or Wayland specific, check if using wayland |
|
|
|
bool puglUsingWayland(PuglWorld* world); |
|
|
|
|
|
|
|
#ifdef HAVE_X11 |
|
|
|
#define DGL_USING_X11 |
|
|
|
|
|
|
|
// X11 specific, update world without triggering exposure events |
|
|
|
@@ -120,6 +130,14 @@ PuglStatus puglX11UpdateWithoutExposures(PuglWorld* world); |
|
|
|
|
|
|
|
// X11 specific, set dialog window type |
|
|
|
void puglX11SetWindowType(const PuglView* view, bool isStandalone); |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef HAVE_WAYLAND |
|
|
|
#define DGL_USING_WAYLAND |
|
|
|
|
|
|
|
// Wayland specific, return if running wayland and check if compositor supports decorations |
|
|
|
bool puglWaylandStatus(bool* supportsDecorations); |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|