summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYogish Kulkarni <yogishk@nvidia.com>2014-05-29 13:44:22 +0530
committerSebastian Dröge <sebastian@centricular.com>2014-05-30 09:43:08 +0200
commita1e479a9a0f9d91eec147c27bd336d7e46e90648 (patch)
treed9baa973acfffd92aef01defb0cef28bfc273d86
parentcfcec5f772a82a083acf66dc3bbb42a3c6136bc6 (diff)
downloadgstreamer-plugins-bad-a1e479a9a0f9d91eec147c27bd336d7e46e90648.tar.gz
eglglessink: Set window background as None
Prevent X from redrawing the background on ConfigureNotify by setting background as None. Otherwise flickering is observed when resizing the window. https://bugzilla.gnome.org/show_bug.cgi?id=730981
-rw-r--r--ext/eglgles/video_platform_wrapper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/eglgles/video_platform_wrapper.c b/ext/eglgles/video_platform_wrapper.c
index 0482a8fd7..7f8401ccb 100644
--- a/ext/eglgles/video_platform_wrapper.c
+++ b/ext/eglgles/video_platform_wrapper.c
@@ -111,6 +111,11 @@ platform_create_native_window (gint width, gint height, gpointer * window_data)
s = DefaultScreen (d);
w = XCreateSimpleWindow (d, RootWindow (d, s), 10, 10, width, height, 1,
BlackPixel (d, s), WhitePixel (d, s));
+
+ /* Prevent X from redrawing the background on ConfigureNotify.
+ Otherwise flickering is observed when resizing the window. */
+ XSetWindowBackgroundPixmap (d, w, None);
+
XStoreName (d, w, "eglglessink");
XMapWindow (d, w);
XFlush (d);