From c999873d604c22ec0d6860293eadc5101e2950c1 Mon Sep 17 00:00:00 2001 From: and3md Date: Sat, 7 Oct 2017 17:17:28 +0200 Subject: [PATCH] X11: Window.show() - flush display after resize (do not show resize steps). --- src/dlangui/platforms/x11/x11app.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dlangui/platforms/x11/x11app.d b/src/dlangui/platforms/x11/x11app.d index adba439b..77728751 100644 --- a/src/dlangui/platforms/x11/x11app.d +++ b/src/dlangui/platforms/x11/x11app.d @@ -452,7 +452,7 @@ class X11Window : DWindow { override void show() { Log.d("X11Window.show"); XMapRaised(x11display, _win); - XFlush(x11display); + static if (ENABLE_OPENGL) { if (_enableOpengl) { _glc = glXCreateContext(x11display, x11visual, null, GL_TRUE); @@ -484,6 +484,7 @@ class X11Window : DWindow { _mainWidget.setFocus(); } + XFlush(x11display); } override protected void handleWindowStateChange(WindowState newState, Rect newWindowRect = RECT_VALUE_IS_NOT_SET) {