summaryrefslogtreecommitdiff
path: root/src
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
parent114f559e23f11819a973c0a1ca5dab918528150b (diff)
downloadefl-1bb45f6e6194fa046d3d1409e1aacecc14dc4b4f.tar.gz
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')
-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)
ewd->idle_enterer = ecore_idle_enterer_add(_cb_connect_idle, ewd);
_ecore_wl2_display_event(ewd, ECORE_WL2_EVENT_CONNECT);
+ ecore_wl2_display_flush(ewd);
return EINA_TRUE;
}
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)
if (window->surface) wl_surface_destroy(window->surface);
window->surface = NULL;
window->surface_id = -1;
+ ecore_wl2_display_flush(window->display);
}
@@ -234,7 +235,7 @@ _ecore_wl2_window_zxdg_popup_create(Ecore_Wl2_Window *win)
win->pending.configure = EINA_TRUE;
- wl_surface_commit(win->surface);
+ ecore_wl2_window_commit(win, EINA_TRUE);
}
static void
@@ -352,7 +353,7 @@ _ecore_wl2_window_shell_surface_init(Ecore_Wl2_Window *window)
window->aspect.w, window->aspect.h, window->aspect.aspect);
}
- wl_surface_commit(window->surface);
+ ecore_wl2_window_commit(window, EINA_TRUE);
}
if (window->display->wl.session_recovery)
@@ -541,7 +542,7 @@ ecore_wl2_window_hide(Ecore_Wl2_Window *window)
if (window->surface)
{
wl_surface_attach(window->surface, NULL, 0, 0);
- wl_surface_commit(window->surface);
+ ecore_wl2_window_commit(window, EINA_TRUE);
window->commit_pending = EINA_FALSE;
}