summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2018-09-30 14:38:26 +0200
committerfalkTX <falktx@gmail.com>2018-09-30 14:38:26 +0200
commit981e61a807280ea91bece2780e75ee3a48949675 (patch)
tree96086afde2a3d5bfc2a03a332b689a1f112f6080
parent285b6b8b79a826d04a3570d09aa184377a4cefff (diff)
Small adjustments to Window
-rw-r--r--dgl/src/Window.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/dgl/src/Window.cpp b/dgl/src/Window.cpp
index 610196fd..06549785 100644
--- a/dgl/src/Window.cpp
+++ b/dgl/src/Window.cpp
@@ -537,6 +537,7 @@ struct Window::PrivateData {
DBG("Window setResizable called\n");
fResizable = yesNo;
+ fView->user_resizable = yesNo;
#if defined(DISTRHO_OS_WINDOWS)
const int winFlags = fResizable ? GetWindowLong(hwnd, GWL_STYLE) | WS_SIZEBOX
@@ -556,6 +557,8 @@ struct Window::PrivateData {
{
DISTRHO_SAFE_ASSERT_RETURN(fResizable,);
+ fView->min_width = width;
+ fView->min_height = height;
puglUpdateGeometryConstraints(fView, width, height, aspect);
}
@@ -612,7 +615,6 @@ struct Window::PrivateData {
}
}
#else
- XResizeWindow(xDisplay, xWindow, width, height);
if (! fResizable)
{
@@ -630,6 +632,8 @@ struct Window::PrivateData {
XSetWMNormalHints(xDisplay, xWindow, &sizeHints);
}
+ XResizeWindow(xDisplay, xWindow, width, height);
+
if (! forced)
XFlush(xDisplay);
#endif
@@ -849,7 +853,7 @@ struct Window::PrivateData {
void onPuglMotion(int x, int y)
{
- DBGp("PUGL: onMotion : %i %i\n", x, y);
+ // DBGp("PUGL: onMotion : %i %i\n", x, y);
if (fModal.childFocus != nullptr)
return;