Support window resize/add scrollbars when content is too big on X11.

This commit is contained in:
and3md 2017-06-25 14:39:34 +02:00
parent 27c8e70f5b
commit 774a33aae4
1 changed files with 7 additions and 2 deletions

View File

@ -428,8 +428,13 @@ class X11Window : DWindow {
Log.d("Open GL support is disabled");
}
}
if (_mainWidget)
_mainWidget.setFocus();
if (_mainWidget) {
_mainWidget.measure(SIZE_UNSPECIFIED, SIZE_UNSPECIFIED);
_windowRect.right = _dx;// hack to set windowRect, remove when _windowRect will be full supported on X11
_windowRect.bottom = _dy;
adjustWindowOrContentSize(_mainWidget.measuredWidth, _mainWidget.measuredHeight);
_mainWidget.setFocus();
}
}
protected final void changeWindowState(int action, Atom firstProperty, Atom secondProperty = None) nothrow