discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=1ed503281f2eee310184675e0541d6c718bb04d2

commit 1ed503281f2eee310184675e0541d6c718bb04d2
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Wed Mar 18 15:52:56 2015 -0400

    wayland-compositor: Clamp to 1, 1 on drag resize
    
    Summary:
    Apparently negative values mean "pick a size", though this is
    undocumented.
    
    Reviewers: devilhorns, zmike
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D2191
---
 src/bin/e_comp_wl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 63fd4ad..ef8e57a 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -569,6 +569,8 @@ _e_comp_wl_evas_cb_resize(void *data, Evas_Object *obj 
EINA_UNUSED, void *event
            default:
              y -= ay;
           }
+        x = E_CLAMP(x, 1, x);
+        y = E_CLAMP(y, 1, y);
         ec->comp_data->shell.configure_send(ec->comp_data->shell.surface,
                                  e_comp->wl_comp_data->resize.edges,
                                  x, y);

-- 


Reply via email to