discomfitor pushed a commit to branch master.

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

commit e49b3beff11779135c8df5ef2b92e822aceb872e
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Mar 27 16:42:23 2014 -0400

    ensure minimum X parent window size of 1x1
    
    fix T1098
---
 src/bin/e_comp_x.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index d89b239..14968a5 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -2678,16 +2678,19 @@ static void
 _e_comp_x_hook_client_pre_frame_assign(void *d EINA_UNUSED, E_Client *ec)
 {
    Ecore_X_Window win, pwin;
+   int w, h;
 
    E_COMP_X_PIXMAP_CHECK;
    win = e_client_util_win_get(ec);
    if (!ec->comp_data->need_reparent) return;
+   w = MAX(ec->client.w, 1);
+   h = MAX(ec->client.h, 1);
    /* match ec parent argbness */
    if (ec->argb)
-     pwin = ecore_x_window_manager_argb_new(ec->comp->man->root, ec->client.x, 
ec->client.y, ec->client.w, ec->client.h);
+     pwin = ecore_x_window_manager_argb_new(ec->comp->man->root, ec->client.x, 
ec->client.y, w, h);
    else
      {
-        pwin = ecore_x_window_override_new(ec->comp->man->root, ec->client.x, 
ec->client.y, ec->client.w, ec->client.h);
+        pwin = ecore_x_window_override_new(ec->comp->man->root, ec->client.x, 
ec->client.y, w, h);
         ecore_x_window_shape_events_select(pwin, !ec->internal); //let's just 
agree never to do this with our own windows...
      }
    ecore_x_present_select_events(pwin, 
ECORE_X_PRESENT_EVENT_MASK_CONFIGURE_NOTIFY);

-- 


Reply via email to