Hi,
  I found frame size including width and height isn't counted in
_elm_win_resize_objects_eval() when calculating minimized elm_window
size.
  It is OK for X engine because elementary only draw client area and X
provides widow frame. So both the width and height from
evas_output_framespace_get are 0.
  But it cause bug for wayland engine because elementary need draw window
frame by itself. So real client area size is smaller than window size.
If frame size isn't counted into minimized window size, there isn't
enough client area to layout widgets.
  So it is bug for any engine in which elementary draws window frame by
itself. It is the reason of http://trac.enlightenment.org/e/ticket/1064.
  Could you please my attached patch for this issue?
  Thanks.

Yan Wang
Index: src/lib/elm_win.c
===================================================================
--- src/lib/elm_win.c	(revision 74029)
+++ src/lib/elm_win.c	(working copy)
@@ -1498,6 +1498,9 @@ _elm_win_resize_objects_eval(Evas_Object *obj)
         else if ((h > 0) && (h < maxh))
           maxh = h;
      }
+   evas_output_framespace_get(sd->evas, NULL, NULL, &w, &h);
+   minw += w;
+   minh += h;
    if (!xx) maxw = minw;
    else maxw = 32767;
    if (!xy) maxh = minh;
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to