summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-05-08 13:27:00 -0500
committerDerek Foreman <derekf@osg.samsung.com>2018-05-08 13:27:00 -0500
commit0ef79bb941090bb1cdb46d97e3cf1c185632500b (patch)
tree083ade42fc6b0e34b1f6680220ad2c7e62899200 /src/lib/ecore_wl2
parent1e2626a70cd11d6610510158cd0f6c4b4b8adcc4 (diff)
ecore_wl2: complain loudly when move or resize doesn't provide a seat
Summary: We now have the ability to provide the seat information properly, so fire off an ERR if a caller doesn't. Depends on D6131 Reviewers: zmike, cedric Reviewed By: zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6132
Diffstat (limited to 'src/lib/ecore_wl2')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index 7b1d6b711e..8895adaed5 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -732,8 +732,10 @@ ecore_wl2_window_move(Ecore_Wl2_Window *window, Ecore_Wl2_Input *input)
732 EINA_SAFETY_ON_NULL_RETURN(window->display->inputs); 732 EINA_SAFETY_ON_NULL_RETURN(window->display->inputs);
733 733
734 if (!input) 734 if (!input)
735 input = EINA_INLIST_CONTAINER_GET(window->display->inputs, Ecore_Wl2_Input); 735 {
736 736 ERR("NULL input parameter is deprecated");
737 input = EINA_INLIST_CONTAINER_GET(window->display->inputs, Ecore_Wl2_Input);
738 }
737 if (window->xdg_toplevel) 739 if (window->xdg_toplevel)
738 xdg_toplevel_move(window->xdg_toplevel, input->wl.seat, 740 xdg_toplevel_move(window->xdg_toplevel, input->wl.seat,
739 window->display->serial); 741 window->display->serial);
@@ -752,7 +754,10 @@ ecore_wl2_window_resize(Ecore_Wl2_Window *window, Ecore_Wl2_Input *input, int lo
752 EINA_SAFETY_ON_NULL_RETURN(window->display->inputs); 754 EINA_SAFETY_ON_NULL_RETURN(window->display->inputs);
753 755
754 if (!input) 756 if (!input)
755 input = EINA_INLIST_CONTAINER_GET(window->display->inputs, Ecore_Wl2_Input); 757 {
758 ERR("NULL input parameter is deprecated");
759 input = EINA_INLIST_CONTAINER_GET(window->display->inputs, Ecore_Wl2_Input);
760 }
756 761
757 if (window->xdg_toplevel) 762 if (window->xdg_toplevel)
758 xdg_toplevel_resize(window->xdg_toplevel, input->wl.seat, 763 xdg_toplevel_resize(window->xdg_toplevel, input->wl.seat,