summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-09-01 12:03:49 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-09-01 12:29:05 -0500
commit1f555c897e78f2ac219ff22afe0c254675d1d633 (patch)
treef6a23ba9435c7bd5094aaecaacb6829448d09db0 /src/lib/ecore_wl2
parent0af325402013ffeee5fa16c878a65fc011f1aea7 (diff)
ecore_wl2: Don't set up callbacks on initial commit
We don't want to do frame callbacks until after we can actually draw stuff
Diffstat (limited to 'src/lib/ecore_wl2')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index f916ccf7f6..afffdfdfa2 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -1394,10 +1394,12 @@ ecore_wl2_window_commit(Ecore_Wl2_Window *window, Eina_Bool flush)
1394 if (window->commit_pending) 1394 if (window->commit_pending)
1395 ERR("Commit before previous commit processed"); 1395 ERR("Commit before previous commit processed");
1396 1396
1397 window->commit_pending = EINA_TRUE; 1397 if (!window->pending.configure)
1398 window->callback = wl_surface_frame(window->surface); 1398 {
1399 wl_callback_add_listener(window->callback, &_frame_listener, window); 1399 window->commit_pending = EINA_TRUE;
1400 1400 window->callback = wl_surface_frame(window->surface);
1401 wl_callback_add_listener(window->callback, &_frame_listener, window);
1402 }
1401 if (flush) 1403 if (flush)
1402 { 1404 {
1403 wl_surface_commit(window->surface); 1405 wl_surface_commit(window->surface);