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