derekf pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=4f8dd3f1e59903a0cc177cb1072ce762bcd917b3

commit 4f8dd3f1e59903a0cc177cb1072ce762bcd917b3
Author: Derek Foreman <[email protected]>
Date:   Wed Jun 15 16:39:08 2016 -0500

    Fix wl_shell clamping rules
    
    The current clamping logic clamps submenus so that they're contained
    within their parent instead of adjacent to them.
---
 src/modules/wl_desktop_shell/e_mod_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/wl_desktop_shell/e_mod_main.c 
b/src/modules/wl_desktop_shell/e_mod_main.c
index 6c0a05e..2e59d7c 100644
--- a/src/modules/wl_desktop_shell/e_mod_main.c
+++ b/src/modules/wl_desktop_shell/e_mod_main.c
@@ -492,11 +492,11 @@ _e_shell_surface_configure(struct wl_resource *resource, 
Evas_Coord x, Evas_Coor
              x = E_CLAMP(ec->parent->client.x + ec->comp_data->popup.x,
                          ec->parent->client.x,
                          ec->parent->client.x +
-                         ec->parent->client.w - ec->client.w);
+                         ec->parent->client.w);
              y = E_CLAMP(ec->parent->client.y + ec->comp_data->popup.y,
                          ec->parent->client.y,
                          ec->parent->client.y +
-                         ec->parent->client.h - ec->client.h);
+                         ec->parent->client.h);
           }
      }
 

-- 


Reply via email to