diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-02-02 08:21:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-02 08:21:05 +0100 |
commit | 251e014b59d426f1b7a7d333c82669e7ebbc5bf5 (patch) | |
tree | 3bc6cfca7d42a86251ed2d9803c68a56f39dcc2b /platform/x11 | |
parent | 40e4c1f6abbe5569a3c2f91d48b9770c8e97ea0d (diff) | |
parent | 8f7a3884fdde52dfad61d42e08d40d143fde7c79 (diff) |
Merge pull request #7578 from baekdahl/master
x11: don't wait for window to be mapped
Diffstat (limited to 'platform/x11')
-rw-r--r-- | platform/x11/context_gl_x11.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/platform/x11/context_gl_x11.cpp b/platform/x11/context_gl_x11.cpp index 39b704d2c4..caa5e4fc89 100644 --- a/platform/x11/context_gl_x11.cpp +++ b/platform/x11/context_gl_x11.cpp @@ -130,13 +130,6 @@ Error ContextGL_X11::initialize() { x11_window = XCreateWindow(x11_display, RootWindow(x11_display, vi->screen), 0, 0, OS::get_singleton()->get_video_mode().width, OS::get_singleton()->get_video_mode().height, 0, vi->depth, InputOutput, vi->visual, CWBorderPixel|CWColormap|CWEventMask, &swa); ERR_FAIL_COND_V(!x11_window,ERR_UNCONFIGURED); XMapWindow(x11_display, x11_window); - while(true) { - // wait for mapnotify (window created) - XEvent e; - XNextEvent(x11_display, &e); - if (e.type == MapNotify) - break; - } //}; |