summaryrefslogtreecommitdiff
path: root/dgl/src/Window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dgl/src/Window.cpp')
-rw-r--r--dgl/src/Window.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/dgl/src/Window.cpp b/dgl/src/Window.cpp
index f809777b..6a221690 100644
--- a/dgl/src/Window.cpp
+++ b/dgl/src/Window.cpp
@@ -19,10 +19,6 @@
#include "../Base.hpp"
-#undef PUGL_HAVE_CAIRO
-#undef PUGL_HAVE_GL
-#define PUGL_HAVE_GL 1
-
#include "pugl/pugl.h"
#if defined(__GNUC__) && (__GNUC__ >= 7)
@@ -619,7 +615,7 @@ struct Window::PrivateData {
sizeHints.max_width = static_cast<int>(width);
sizeHints.max_height = static_cast<int>(height);
- XSetNormalHints(xDisplay, xWindow, &sizeHints);
+ XSetWMNormalHints(xDisplay, xWindow, &sizeHints);
}
if (! forced)