summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2018-09-19 07:01:01 -0400
committerChris Michael <cp.michael@samsung.com>2018-09-19 07:01:01 -0400
commitd702f714fef5ac0ef70832ad1b0c1914e365b11d (patch)
tree1d35b0ec82fb7b28be302ca810d0017c98b6019a /src/lib/ecore_wl2
parent2948bacdb6ad3587b8997e1ad2b4638007979ff9 (diff)
ecore_wl2_window: Fix incorrectly implemented null check.
Summary: It checks 'window->xdg_toplevel' two times. Reviewers: ManMower, devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7065
Diffstat (limited to 'src/lib/ecore_wl2')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index a2171aa800..a2468cc4d0 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -999,7 +999,7 @@ ecore_wl2_window_title_set(Ecore_Wl2_Window *window, const char *title)
999 999
1000 eina_stringshare_replace(&window->title, title); 1000 eina_stringshare_replace(&window->title, title);
1001 if (!window->title) return; 1001 if (!window->title) return;
1002 if (!window->xdg_toplevel && !window->xdg_toplevel) return; 1002 if (!window->xdg_toplevel && !window->zxdg_toplevel) return;
1003 1003
1004 if (window->xdg_toplevel) 1004 if (window->xdg_toplevel)
1005 xdg_toplevel_set_title(window->xdg_toplevel, window->title); 1005 xdg_toplevel_set_title(window->xdg_toplevel, window->title);
@@ -1015,7 +1015,7 @@ ecore_wl2_window_class_set(Ecore_Wl2_Window *window, const char *clas)
1015 1015
1016 eina_stringshare_replace(&window->class, clas); 1016 eina_stringshare_replace(&window->class, clas);
1017 if (!window->class) return; 1017 if (!window->class) return;
1018 if (!window->xdg_toplevel && !window->xdg_toplevel) return; 1018 if (!window->xdg_toplevel && !window->zxdg_toplevel) return;
1019 1019
1020 if (window->xdg_toplevel) 1020 if (window->xdg_toplevel)
1021 xdg_toplevel_set_app_id(window->xdg_toplevel, window->class); 1021 xdg_toplevel_set_app_id(window->xdg_toplevel, window->class);