summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-08-04 16:11:00 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-08-04 16:10:34 -0400
commitf2627d49c115e8874dfe0b32581a80b171799bbc (patch)
tree2e5a960e893856462f36fc4da9a5ac6490f807f4 /src/lib/ecore_wl2
parentcd7633ecbf68c7dabd5a4f543f7b8489f4653a22 (diff)
ecore-wl2: don't send null set_parent requests for every window
this is redundant @fix
Diffstat (limited to 'src/lib/ecore_wl2')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index f12d73230c..eeedca10ec 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -356,14 +356,13 @@ _ecore_wl2_window_type_set(Ecore_Wl2_Window *win)
356 case ECORE_WL2_WINDOW_TYPE_TOPLEVEL: 356 case ECORE_WL2_WINDOW_TYPE_TOPLEVEL:
357 if (win->zxdg_surface) 357 if (win->zxdg_surface)
358 { 358 {
359 struct zxdg_toplevel_v6 *ptop; 359 struct zxdg_toplevel_v6 *ptop = NULL;
360 360
361 if (win->parent) 361 if (win->parent)
362 ptop = win->parent->zxdg_toplevel; 362 ptop = win->parent->zxdg_toplevel;
363 else
364 ptop = NULL;
365 363
366 zxdg_toplevel_v6_set_parent(win->zxdg_toplevel, ptop); 364 if (ptop)
365 zxdg_toplevel_v6_set_parent(win->zxdg_toplevel, ptop);
367 } 366 }
368 else if (win->xdg_surface) 367 else if (win->xdg_surface)
369 xdg_surface_set_parent(win->xdg_surface, NULL); 368 xdg_surface_set_parent(win->xdg_surface, NULL);