derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0ef79bb941090bb1cdb46d97e3cf1c185632500b

commit 0ef79bb941090bb1cdb46d97e3cf1c185632500b
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Tue May 8 13:27:00 2018 -0500

    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
---
 src/lib/ecore_wl2/ecore_wl2_window.c | 11 ++++++++---
 1 file 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)
    EINA_SAFETY_ON_NULL_RETURN(window->display->inputs);
 
    if (!input)
-     input = EINA_INLIST_CONTAINER_GET(window->display->inputs, 
Ecore_Wl2_Input);
-
+     {
+        ERR("NULL input parameter is deprecated");
+        input = EINA_INLIST_CONTAINER_GET(window->display->inputs, 
Ecore_Wl2_Input);
+     }
    if (window->xdg_toplevel)
      xdg_toplevel_move(window->xdg_toplevel, input->wl.seat,
                            window->display->serial);
@@ -752,7 +754,10 @@ ecore_wl2_window_resize(Ecore_Wl2_Window *window, 
Ecore_Wl2_Input *input, int lo
    EINA_SAFETY_ON_NULL_RETURN(window->display->inputs);
 
    if (!input)
-     input = EINA_INLIST_CONTAINER_GET(window->display->inputs, 
Ecore_Wl2_Input);
+     {
+        ERR("NULL input parameter is deprecated");
+        input = EINA_INLIST_CONTAINER_GET(window->display->inputs, 
Ecore_Wl2_Input);
+     }
 
    if (window->xdg_toplevel)
      xdg_toplevel_resize(window->xdg_toplevel, input->wl.seat,

-- 


Reply via email to