adjust for SSD geometry during wayland client resize
authorMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 24 Nov 2015 22:29:53 +0000 (17:29 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 24 Nov 2015 22:29:53 +0000 (17:29 -0500)
client moveinfo includes the frame geometry, so this must be taken
into account when resizing a client which has a frame

fix T2863

src/bin/e_comp_wl.c

index 7ed06db..4c644b3 100644 (file)
@@ -580,6 +580,8 @@ _e_comp_wl_evas_cb_resize(void *data, Evas_Object *obj EINA_UNUSED, void *event
 
         x = ec->mouse.last_down[ec->moveinfo.down.button - 1].w;
         y = ec->mouse.last_down[ec->moveinfo.down.button - 1].h;
+        if (e_comp_object_frame_exists(ec->frame))
+          e_comp_object_frame_wh_unadjust(ec->frame, x, y, &x, &y);
 
         switch (ec->resize_mode)
           {