discomfitor pushed a commit to branch master.

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

commit 0a5e00488d72b3381daf20f1c230fc016d95bf9c
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Jul 2 14:26:02 2015 -0400

    set initial surface attrs for internal wl clients
---
 src/bin/e_comp_wl.c | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 2ee7510..fcfcaa8 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -1477,14 +1477,17 @@ _e_comp_wl_compositor_cb_surface_create(struct 
wl_client *client, struct wl_reso
           }
         DBG("\tUsing Pixmap: %p", ep);
 
-        if ((ec = e_client_new(ep, 0, 0)))
-          {
-             ec->new_client = 0;
-             e_comp->new_clients--;
-             ec->client.w = ec->client.h = 1;
-             ec->ignored = 1;
-             ec->comp_data->surface = res;
-          }
+        ec = e_client_new(ep, 0, 0);
+     }
+   if (ec)
+     {
+        if (ec->new_client)
+          e_comp->new_clients--;
+        ec->new_client = 0;
+        if ((!ec->client.w) && (ec->client.h))
+          ec->client.w = ec->client.h = 1;
+        ec->ignored = 1;
+        ec->comp_data->surface = res;
      }
 
    /* set reference to pixmap so we can fetch it later */

-- 


Reply via email to