From b977506c9b52fd7646e60f27982353b0d4a910f8 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Thu, 19 Nov 2015 10:05:13 +0300 Subject: [PATCH] fix project settings for X11 --- dlangui-monod-linux.dproj | 4 ++-- examples/example1/example1-monod-linux.dproj | 18 ++++++++++++++++-- src/dlangui/platforms/x11/x11app.d | 4 ++++ 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/dlangui-monod-linux.dproj b/dlangui-monod-linux.dproj index af1cea46..a2351c67 100644 --- a/dlangui-monod-linux.dproj +++ b/dlangui-monod-linux.dproj @@ -156,10 +156,10 @@ obj/DebugX11 - false + true - X + -L-lX11 -Jviews diff --git a/examples/example1/example1-monod-linux.dproj b/examples/example1/example1-monod-linux.dproj index d2281597..3eef1003 100644 --- a/examples/example1/example1-monod-linux.dproj +++ b/examples/example1/example1-monod-linux.dproj @@ -18,6 +18,7 @@ ../../src ../../deps/dlib ../../deps/gl3n + ../../deps/x11/source ../../deps/DerelictSDL2/source ../../deps/DerelictFT/source ../../deps/DerelictGL3/source @@ -168,10 +169,17 @@ true 0 - + bin\DebugX11 + + + USE_X11 + USE_FREETYPE + EmbedStandardResources + + obj/DebugX11 - false + true -Jviews -Jviews/res -Jviews/res/hdpi @@ -183,6 +191,12 @@ Executable true 0 + -lX11 + + + -L-lX11 + + diff --git a/src/dlangui/platforms/x11/x11app.d b/src/dlangui/platforms/x11/x11app.d index 2b99130a..b3e03e16 100644 --- a/src/dlangui/platforms/x11/x11app.d +++ b/src/dlangui/platforms/x11/x11app.d @@ -13,6 +13,8 @@ import dlangui.widgets.styles; import dlangui.widgets.widget; import dlangui.platforms.common.platform; +import std.stdio; + import x11.Xlib; import x11.Xutil; import x11.Xtos; @@ -48,6 +50,8 @@ class X11Window : dlangui.platforms.common.platform.Window { */ _win = XCreateSimpleWindow(x11display, DefaultRootWindow(x11display), 0, 0, _dx, _dy, 5, white, black); + + readln(); /* here is where some properties of the window can be set. The third and fourth items indicate the name which appears