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