48dc8f4
From 1cac327a6ef9c0ca44ec32c7146da37ecb930dca Mon Sep 17 00:00:00 2001
973c76f
From: Daniel Stone <daniels@collabora.com>
973c76f
Date: Thu, 12 Sep 2013 16:58:00 -0400
48dc8f4
Subject: [PATCH 29/38] XWayland: Don't commit empty surfaces
973c76f
973c76f
Instead of attaching, damaging and then committing a new buffer as soon
973c76f
as we allocate a pixmap, just attach and damage the entire buffer.  When
973c76f
the buffer is changed, we'll commit the changes.
973c76f
973c76f
This avoids an ugly black (on SHM) flash when a window is mapped or
973c76f
resized.
973c76f
973c76f
Signed-off-by: Daniel Stone <daniels@collabora.com>
973c76f
---
973c76f
 hw/xfree86/xwayland/xwayland-window.c | 1 -
973c76f
 1 file changed, 1 deletion(-)
973c76f
973c76f
diff --git a/hw/xfree86/xwayland/xwayland-window.c b/hw/xfree86/xwayland/xwayland-window.c
48dc8f4
index 20db80c..5045e65 100644
973c76f
--- a/hw/xfree86/xwayland/xwayland-window.c
973c76f
+++ b/hw/xfree86/xwayland/xwayland-window.c
973c76f
@@ -80,7 +80,6 @@ xwl_window_attach(struct xwl_window *xwl_window, PixmapPtr pixmap)
973c76f
     wl_surface_damage(xwl_window->surface, 0, 0,
72ddd37
 		      pixmap->drawable.width,
72ddd37
 		      pixmap->drawable.height);
973c76f
-    wl_surface_commit(xwl_window->surface);
72ddd37
 
973c76f
     callback = wl_display_sync(xwl_screen->display);
973c76f
     wl_callback_add_listener(callback, &free_pixmap_listener, pixmap);
72ddd37
-- 
48dc8f4
1.8.4.2
72ddd37