summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-08-30 14:52:29 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-08-30 15:08:53 -0500
commit1bb45f6e6194fa046d3d1409e1aacecc14dc4b4f (patch)
treeabf5511431786fe9443fb98d68d79f82ab76ef05 /src/lib/ecore_wl2
parent114f559e23f11819a973c0a1ca5dab918528150b (diff)
ecore_wl2: Use ecore_wl2_window_commit for all wl_surface_commits
This adds an explicit flush to every surface commit.
Diffstat (limited to 'src/lib/ecore_wl2')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_display.c1
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c7
2 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c b/src/lib/ecore_wl2/ecore_wl2_display.c
index d96405c5a8..b11b3af6c6 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -700,6 +700,7 @@ _ecore_wl2_display_connect(Ecore_Wl2_Display *ewd, Eina_Bool sync)
700 ewd->idle_enterer = ecore_idle_enterer_add(_cb_connect_idle, ewd); 700 ewd->idle_enterer = ecore_idle_enterer_add(_cb_connect_idle, ewd);
701 701
702 _ecore_wl2_display_event(ewd, ECORE_WL2_EVENT_CONNECT); 702 _ecore_wl2_display_event(ewd, ECORE_WL2_EVENT_CONNECT);
703 ecore_wl2_display_flush(ewd);
703 return EINA_TRUE; 704 return EINA_TRUE;
704} 705}
705 706
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index 81d8568f09..30c29d759d 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -24,6 +24,7 @@ _ecore_wl2_window_semi_free(Ecore_Wl2_Window *window)
24 if (window->surface) wl_surface_destroy(window->surface); 24 if (window->surface) wl_surface_destroy(window->surface);
25 window->surface = NULL; 25 window->surface = NULL;
26 window->surface_id = -1; 26 window->surface_id = -1;
27 ecore_wl2_display_flush(window->display);
27} 28}
28 29
29 30
@@ -234,7 +235,7 @@ _ecore_wl2_window_zxdg_popup_create(Ecore_Wl2_Window *win)
234 235
235 win->pending.configure = EINA_TRUE; 236 win->pending.configure = EINA_TRUE;
236 237
237 wl_surface_commit(win->surface); 238 ecore_wl2_window_commit(win, EINA_TRUE);
238} 239}
239 240
240static void 241static void
@@ -352,7 +353,7 @@ _ecore_wl2_window_shell_surface_init(Ecore_Wl2_Window *window)
352 window->aspect.w, window->aspect.h, window->aspect.aspect); 353 window->aspect.w, window->aspect.h, window->aspect.aspect);
353 } 354 }
354 355
355 wl_surface_commit(window->surface); 356 ecore_wl2_window_commit(window, EINA_TRUE);
356 } 357 }
357 358
358 if (window->display->wl.session_recovery) 359 if (window->display->wl.session_recovery)
@@ -541,7 +542,7 @@ ecore_wl2_window_hide(Ecore_Wl2_Window *window)
541 if (window->surface) 542 if (window->surface)
542 { 543 {
543 wl_surface_attach(window->surface, NULL, 0, 0); 544 wl_surface_attach(window->surface, NULL, 0, 0);
544 wl_surface_commit(window->surface); 545 ecore_wl2_window_commit(window, EINA_TRUE);
545 window->commit_pending = EINA_FALSE; 546 window->commit_pending = EINA_FALSE;
546 } 547 }
547 548