use pixmap size for wl subsurface commit configure
authorMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 11 Feb 2015 22:08:06 +0000 (17:08 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 11 Feb 2015 22:08:06 +0000 (17:08 -0500)
src/bin/e_comp_wl.c

index 30d85a85d1f09652bd7a082fbe540cbc4b93c004..ce4746a45387c29f8d6868d1ab9f1b69816e1235 100644 (file)
@@ -1491,10 +1491,7 @@ _e_comp_wl_subsurface_commit_from_cache(E_Client *ec)
      {
         int x, y, nw, nh;
 
-        nw = ec->client.w;
-        nh = ec->client.h;
-        if (nw == 0) nw = cdata->pending.w;
-        if (nh == 0) nh = cdata->pending.h;
+        e_pixmap_size_get(ec->pixmap, &nw, &nh);
         if (ec->changes.pos)
           e_comp_object_frame_xy_adjust(ec->frame, ec->x, ec->y, &x, &y);
         else